Block spectators obtaining TNT

This commit is contained in:
AlexTheCoder 2017-05-08 23:22:48 -04:00
parent 79560fd415
commit 834c537bc8

View File

@ -1298,6 +1298,10 @@ public class CastleAssault extends TeamGame
{ {
return; return;
} }
if (UtilPlayer.isSpectator(event.getPlayer()))
{
return;
}
if (_tntSpawner.isSpawned() && event.getItem().getEntityId() == _tntSpawner.getItem().getEntityId()) if (_tntSpawner.isSpawned() && event.getItem().getEntityId() == _tntSpawner.getItem().getEntityId())
{ {