Update Load.java

BungeeCommands could not be executed
This commit is contained in:
JaTiTV 2021-12-22 19:48:50 +01:00
parent 75b4a323c5
commit 613b8652b4

View File

@ -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 {
}
try {
CmdExecuter_GUI.arg1.put("admin", "commandgui.admin;commandgui.giveitem.other;commandgui.command.info");
} catch (Exception e) {
e.printStackTrace();
}