geforkt von SteamWar/BungeeCore
fixing /bau bug
Dieser Commit ist enthalten in:
Ursprung
15df6459ae
Commit
28aa1504f0
@ -157,7 +157,7 @@ public class PlayerListener implements Listener {
|
||||
|
||||
@EventHandler
|
||||
public void onChatEvent(ChatEvent e){
|
||||
if(e.isCommand()){
|
||||
if(e.getMessage().startsWith("/")){
|
||||
String [] command = e.getMessage().split(" ");
|
||||
if(command[0].contains(":")){
|
||||
e.setCancelled(true);
|
||||
@ -167,9 +167,9 @@ public class PlayerListener implements Listener {
|
||||
}
|
||||
}else if(command[0].equalsIgnoreCase("/bau") && e.getSender() instanceof ProxiedPlayer){
|
||||
ProxiedPlayer sender = (ProxiedPlayer) e.getSender();
|
||||
if(!sender.getServer().getInfo().getName().equals("Bauserver")){
|
||||
if(!sender.getServer().getInfo().getName().equals("Bau")){
|
||||
e.setCancelled(true);
|
||||
sender.connect(ProxyServer.getInstance().getServerInfo("Bauserver"));
|
||||
sender.connect(ProxyServer.getInstance().getServerInfo("Bau"));
|
||||
}
|
||||
}
|
||||
}else{
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren