Instead of removing the shot arrow, cancel the event instead. Fixes kit Shredder being usable during buildtime
This commit is contained in:
parent
9863b701d8
commit
6343a00b53
@ -274,7 +274,7 @@ public class TurfForts extends TeamGame
|
|||||||
if (!_fight)
|
if (!_fight)
|
||||||
{
|
{
|
||||||
UtilPlayer.message(event.getEntity(), F.main("Game", "You cannot attack during Build Time!"));
|
UtilPlayer.message(event.getEntity(), F.main("Game", "You cannot attack during Build Time!"));
|
||||||
event.getProjectile().remove();
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user