mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Misc
This commit is contained in:
parent
35821a75c9
commit
4d7b646f3d
@ -54,7 +54,17 @@ public class TFM_BlockListener extends BlockListener
|
||||
Location player_pos = p.getLocation();
|
||||
Location block_pos = event.getBlock().getLocation();
|
||||
|
||||
if (player_pos.distance(block_pos) > plugin.nukeMonitorRange)
|
||||
boolean out_of_range = false;
|
||||
if (!player_pos.getWorld().equals(block_pos.getWorld()))
|
||||
{
|
||||
out_of_range = true;
|
||||
}
|
||||
else if (player_pos.distance(block_pos) > plugin.nukeMonitorRange)
|
||||
{
|
||||
out_of_range = true;
|
||||
}
|
||||
|
||||
if (out_of_range)
|
||||
{
|
||||
playerdata.incrementFreecamDestroyCount();
|
||||
if (playerdata.getFreecamDestroyCount() > plugin.freecamTriggerCount)
|
||||
@ -103,7 +113,17 @@ public class TFM_BlockListener extends BlockListener
|
||||
Location player_pos = p.getLocation();
|
||||
Location block_pos = event.getBlock().getLocation();
|
||||
|
||||
if (player_pos.distance(block_pos) > plugin.nukeMonitorRange)
|
||||
boolean out_of_range = false;
|
||||
if (!player_pos.getWorld().equals(block_pos.getWorld()))
|
||||
{
|
||||
out_of_range = true;
|
||||
}
|
||||
else if (player_pos.distance(block_pos) > plugin.nukeMonitorRange)
|
||||
{
|
||||
out_of_range = true;
|
||||
}
|
||||
|
||||
if (out_of_range)
|
||||
{
|
||||
playerdata.incrementFreecamPlaceCount();
|
||||
if (playerdata.getFreecamPlaceCount() > plugin.freecamTriggerCount)
|
||||
|
@ -344,7 +344,7 @@ public class TFM_PlayerListener extends PlayerListener
|
||||
}
|
||||
else
|
||||
{
|
||||
TFM_Util.bcastMsg(p.getName() + " is a verified superadmin.", ChatColor.GREEN);
|
||||
//TFM_Util.bcastMsg(p.getName() + " is a verified superadmin.", ChatColor.GREEN);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user