Fixed freezer. Resolves #48

This commit is contained in:
ZeroEpoch1969 2018-03-12 21:43:51 -07:00
parent 5223339a9e
commit c423f273c5
No known key found for this signature in database
GPG Key ID: E0AAB104FB9F8FDF

View File

@ -57,19 +57,17 @@ public class FreezeData
location = player.getLocation(); // Blockify location location = player.getLocation(); // Blockify location
FUtil.setFlying(player, true); // Avoid infinite falling FUtil.setFlying(player, true); // Avoid infinite falling
if (fPlayer.getPlugin().al.isAdminImpostor(player))
{
return; // Don't run unfreeze task for impostors
}
unfreeze = new BukkitRunnable() unfreeze = new BukkitRunnable()
{ {
@Override @Override
public void run() public void run()
{
if (!fPlayer.getPlugin().al.isAdminImpostor(player))
{ {
FUtil.adminAction("TotalFreedom", "Unfreezing " + player.getName(), false); FUtil.adminAction("TotalFreedom", "Unfreezing " + player.getName(), false);
setFrozen(false); setFrozen(false);
} }
}
}.runTaskLater(fPlayer.getPlugin(), AUTO_PURGE_TICKS); }.runTaskLater(fPlayer.getPlugin(), AUTO_PURGE_TICKS);
} }