I've recently conjured up a command, it is supposed to be moving the camera to where ever I please it to, if I type; ::cam # # # # #.
The problem is that it will not work, I type it up and it does nothing, It does not even give me the warning error that it should if typed in-correctly. There are no errors from this command, so what is the problem?
Code:
if (command.startsWith("cam")) {
try {
String[] args = command.split(" ");
outStream.createFrame(166);
outStream.writeByte(Integer.parseInt(args[1])); // X coord where camera will end within the region
outStream.writeByte(Integer.parseInt(args[2])); // Y coord where camera will end within the region
outStream.writeWord(Integer.parseInt(args[3])); // the camera height where it will end
outStream.writeByte(Integer.parseInt(args[4])); // the camera moving speed
outStream.writeByte(Integer.parseInt(args[5])); // if this goes above 100 it does something?
} catch (Exception e) {
sendMessage("Wrong Syntax! Use as ::cam # # # # #");
}
}