Skip to content

Commit

Permalink
Make the status button clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
ME1312 committed Oct 26, 2022
1 parent 36f2821 commit c5377f7
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -413,6 +413,9 @@ public void accept(ObjectMap<String> json) {
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Server-Admin.Plugins"))) {
player.closeInventory();
gui.serverPlugin(1, ((Server) gui.lastVisitedObjects[0]).getName());
} else if (item.length() > 2 && item.substring(2).equals(((Server) gui.lastVisitedObjects[0]).getDisplayName()) &&
!item.startsWith(ChatColor.RED.toString()) && !item.startsWith(ChatColor.YELLOW.toString()) && !((Server) gui.lastVisitedObjects[0]).getName().equals(plugin.api.getName())) {
plugin.pmc(player, "Connect", ((Server) gui.lastVisitedObjects[0]).getName());
}
}
} else if (title.startsWith(plugin.api.getLang("SubServers", "Interface.SubServer-Plugin.Title").split("\\$str\\$")[0]) && // SubServer Plugin
Expand Down

0 comments on commit c5377f7

Please sign in to comment.