/potspy saving (#64)

This commit is contained in:
Super_
2018-05-22 19:01:24 -04:00
committed by Seth
parent baf367b003
commit ff3f9f0a66
4 changed files with 12 additions and 8 deletions

View File

@ -58,7 +58,7 @@ public class Monitors extends FreedomService
for (Player p : server.getOnlinePlayers())
{
if (plugin.al.isAdmin(p) && plugin.pl.getPlayer(p).isPotionMonitorEnabled())
if (plugin.al.isAdmin(p) && plugin.al.getAdmin(p).getPotionSpy())
{
FUtil.playerMsg(p, potionSpyPrefix + ChatColor.WHITE + player.getName() + " splashed " + event.getEntity().getItem().getAmount() + " " + getMaterial(droppedItem) + " at X: " + decimalFormat.format(location.getX()) + ", Y: " + decimalFormat.format(location.getY()) + ", Z: " + decimalFormat.format(location.getZ()) + ", in the world '" + location.getWorld().getName() + "'.");
}