hey guys im not sure how to use Add Model command help me please
Code:
if(inputString.startsWith("/"))
inputString = "::" + inputString;
if(inputString.equals("add model")) {
try {
int ModelIndex = Integer.parseInt(JOptionPane.showInputDialog(this, "Enter model ID", "Model", 3));
byte[] abyte0 = getModel(ModelIndex);
if(abyte0 != null && abyte0.length > 0) {
decompressors[1].method234(abyte0.length, abyte0, ModelIndex);
pushMessage("Model: [" + ModelIndex + "] added successfully!", 0, "");
} else {
pushMessage("Unable to find the model. "+ModelIndex, 0, "");
}
} catch(Exception e) {
pushMessage("Syntax - ::add model <path>", 0, "");
}
}