Fix join/quit messages.

This commit is contained in:
William Burns 2016-04-02 11:08:40 +01:00
parent 6072753624
commit 15cf7f574d

View File

@ -594,8 +594,6 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
return;
}
if (event.getJoinMessage() != null)
{
event.setJoinMessage(null);
for (Player other : UtilServer.getPlayers())
@ -609,7 +607,6 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
other.sendMessage(F.sys("Join", event.getPlayer().getName()));
}
}
}
@EventHandler(priority = EventPriority.LOWEST)
public void Quit(PlayerQuitEvent event)
@ -620,8 +617,6 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
return;
}
if (event.getQuitMessage() != null)
{
event.setQuitMessage(null);
for (Player other : UtilServer.getPlayers())
@ -635,7 +630,6 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
other.sendMessage(F.sys("Quit", event.getPlayer().getName()));
}
}
}
@EventHandler(priority = EventPriority.LOWEST)
public void Kick(PlayerKickEvent event)