How would you go about using the Interface Listener to open an interface. Becuase I made a command and that crashes the server. I tried using the sendInterface method, and many other methods. How would you make a ::interface command then?
Code:
} else if (command.startsWith("interface")) {
if (args.length == 2) {
player.getActionSender().sendInterface(Integer.parseInt(args[1]));
}
}
^ This causes the client to spit out a T2 error.
Code:
Error: T2 - 97,65,81 - 2,3199,3202 - 0,1,
Thanks in advice,
Arham