hey, trying to get my interface command to work, using creative-scape as a base.
the error in client:
Code:
Error: T2 - 97,65,81 - 2,3095,3233 - 0,13,
urlstream
"0,13" this number changes depending on what interface number i put in, in this case it was 13 which is supposed to be the bank pin interface.
my command code:
Code:
package server.model.player.command;
import server.model.player.Client;
import server.model.player.Command;
import server.world.PlayerManager;
import server.util.Misc;
public class Interface implements Command {
@Override
public void execute(Client client, String command) {
if(client.playerRights > 1){
try {
int id = Integer.parseInt(command.substring(10));
client.getActionAssistant().showInterface(id);
client.getActionAssistant().sendMessage("Testing Interface: ["+id+"].");
} catch(Exception e) {
client.getActionAssistant().sendMessage("You have entered an invalid interface id, try again.");
}
}
}
}