Lower freeze walk buffer
This commit is contained in:
parent
46768c60ec
commit
8379c6235b
@ -79,7 +79,7 @@ public class ClansFreezeManager extends MiniPlugin
|
|||||||
if (isFrozen(event.getPlayer()) && UtilMath.offset2d(event.getFrom().getBlock().getLocation(), event.getTo().getBlock().getLocation()) >= 1)
|
if (isFrozen(event.getPlayer()) && UtilMath.offset2d(event.getFrom().getBlock().getLocation(), event.getTo().getBlock().getLocation()) >= 1)
|
||||||
{
|
{
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
event.getPlayer().teleport(event.getFrom().getBlock().getLocation().add(0, 1, 0));
|
event.getPlayer().teleport(event.getFrom().getBlock().getLocation().add(0, 0.5, 0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user