Ignore float kick for Wind Blade. Fixes PC-314

This commit is contained in:
samczsun 2016-05-17 21:20:12 -04:00 committed by Sam Sun
parent 786c60537e
commit 08784d3f0a

View File

@ -562,7 +562,7 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
// Players using wind blade should not get kicked
if (event.getPlayer().getItemInHand() != null && event.getPlayer().getItemInHand().getItemMeta() != null && (C.cGold + "Wind Blade").equals(event.getPlayer().getItemInHand().getItemMeta().getDisplayName()))
{
if (event.getReason().contains("flying is not enabled"))
if (event.getReason().contains("flying is not enabled") || event.getReason().contains("floating too long"))
{
event.setCancelled(true);
}