Ignore float kick for Wind Blade. Fixes PC-314
This commit is contained in:
parent
786c60537e
commit
08784d3f0a
@ -562,7 +562,7 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
|
|||||||
// Players using wind blade should not get kicked
|
// 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.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);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user