mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 02:05:41 +00:00
Fixed freezer. Resolves #48
This commit is contained in:
parent
5223339a9e
commit
c423f273c5
@ -57,18 +57,16 @@ public class FreezeData
|
||||
location = player.getLocation(); // Blockify location
|
||||
FUtil.setFlying(player, true); // Avoid infinite falling
|
||||
|
||||
if (fPlayer.getPlugin().al.isAdminImpostor(player))
|
||||
{
|
||||
return; // Don't run unfreeze task for impostors
|
||||
}
|
||||
|
||||
unfreeze = new BukkitRunnable()
|
||||
{
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
FUtil.adminAction("TotalFreedom", "Unfreezing " + player.getName(), false);
|
||||
setFrozen(false);
|
||||
if (!fPlayer.getPlugin().al.isAdminImpostor(player))
|
||||
{
|
||||
FUtil.adminAction("TotalFreedom", "Unfreezing " + player.getName(), false);
|
||||
setFrozen(false);
|
||||
}
|
||||
}
|
||||
|
||||
}.runTaskLater(fPlayer.getPlugin(), AUTO_PURGE_TICKS);
|
||||
|
Loading…
Reference in New Issue
Block a user