Update Load.java

BungeeCommands could not be executed
pull/1/head
JaTiTV 5 months ago
parent
commit
613b8652b4
  1. 12
      CommandGUI V2/src/main/java/de/jatitv/commandguiv2/Spigot/system/Load.java

12
CommandGUI V2/src/main/java/de/jatitv/commandguiv2/Spigot/system/Load.java

@ -61,14 +61,9 @@ public class Load { @@ -61,14 +61,9 @@ public class Load {
}
if (SelectConfig.Bungee) {
if (!Bukkit.getMessenger().isOutgoingChannelRegistered(plugin,"commandgui:bungee")){
send.debug(plugin, "registerIncomingPluginChannel §ecommandgui:bungee");
Bukkit.getMessenger().registerOutgoingPluginChannel(plugin,"commandgui:bungee");
}
if (!Bukkit.getMessenger().isIncomingChannelRegistered(plugin,"cgui:onlineplayers")){
send.debug(plugin, "registerIncomingPluginChannel §ecgui:onlineplayers");
Bukkit.getMessenger().registerIncomingPluginChannel(plugin,"cgui:onlineplayers", new Bungee_Sender_Reciver());
if (!Bukkit.getMessenger().isOutgoingChannelRegistered(plugin,"cgui:bungee")){
send.debug(plugin, "registerIncomingPluginChannel §ecgui:bungee");
Bukkit.getMessenger().registerOutgoingPluginChannel(plugin,"cgui:bungee");
}
}
@ -84,7 +79,6 @@ public class Load { @@ -84,7 +79,6 @@ public class Load {
}
try {
CmdExecuter_GUI.arg1.put("admin", "commandgui.admin;commandgui.giveitem.other;commandgui.command.info");
} catch (Exception e) {
e.printStackTrace();
}

Loading…
Cancel
Save