So I noticed there’s no command to be found to open a interface, so I took the honour and made it for you guys.
Command usage: ::intf [ID]
if (playerCommand.startsWith("intf") && c.playerRights >= 3) {
try {
String InterfaceId = playerCommand.substring(5);
int ConvertedString = Integer.parseInt(InterfaceId);
c.getPA().showInterface(ConvertedString);
} catch(Exception e) {
c.sendMessage("Interface error");
}
}
I know it’s not the most complicated code to write, but here it is.
Hope you enjoy,