mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 10:05:59 +00:00
Fixed freezer. Resolves #48
This commit is contained in:
parent
5223339a9e
commit
c423f273c5
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user