I'm Making skilling teleport with the interface 1312 But i cant Get it to work... when I'm pressing on The Agility teleport nothing happened
I Tried with all the component of the interface that was in the agility one and nothing is working
I want to use this interface for each Skill teleport
ButtonHandler.java
Code:
else if (interfaceId == 1312) {
int selection = InterfaceManager.getPlayerInterfaceSelected();
if (selection == 1) {
SkillTeleports.handleInterface(player, componentId);
}
}
SkillTeleports.java
Code:
public static void handleInterface(Player player, int componentId) {
InterfaceManager.setPlayerInterfaceSelected(1);
player.getInterfaceManager().closeChatBoxInterface();
if (componentId == 38 || componentId == 35 || componentId == 5 || componentId == 37
|| componentId == 30 || componentId == 36 || componentId == 34 || componentId == 33
|| componentId == 32 || componentId == 31)
player.closeInterfaces();
AgilityTeleports.sendInterface(player);
if (componentId == 46)
if (componentId == 54)
if (componentId == 62)
if (componentId == 70)
if (componentId == 78)
if (componentId == 86)
if (componentId == 94)
if (componentId == 110) {
}
}