Switch to Bukkit.getOnlinePlayers
This commit is contained in:
parent
f6c4031827
commit
edb9f46167
@ -7,6 +7,7 @@ import com.massivecraft.massivecore.particleeffect.ParticleEffect;
|
|||||||
import com.massivecraft.massivecore.ps.PS;
|
import com.massivecraft.massivecore.ps.PS;
|
||||||
import com.massivecraft.massivecore.util.MUtil;
|
import com.massivecraft.massivecore.util.MUtil;
|
||||||
import com.massivecraft.massivecore.util.PeriodUtil;
|
import com.massivecraft.massivecore.util.PeriodUtil;
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@ -84,7 +85,7 @@ public class EngineSeeChunk extends Engine
|
|||||||
final int amount = 30;
|
final int amount = 30;
|
||||||
|
|
||||||
// For each player
|
// For each player
|
||||||
for (Player player : MUtil.getOnlinePlayers())
|
for (Player player : Bukkit.getOnlinePlayers())
|
||||||
{
|
{
|
||||||
// Hide for dead players since the death screen looks better without.
|
// Hide for dead players since the death screen looks better without.
|
||||||
if (player.isDead()) continue;
|
if (player.isDead()) continue;
|
||||||
|
@ -28,6 +28,7 @@ import com.massivecraft.massivecore.store.SenderColl;
|
|||||||
import com.massivecraft.massivecore.util.IdUtil;
|
import com.massivecraft.massivecore.util.IdUtil;
|
||||||
import com.massivecraft.massivecore.util.MUtil;
|
import com.massivecraft.massivecore.util.MUtil;
|
||||||
import com.massivecraft.massivecore.util.Txt;
|
import com.massivecraft.massivecore.util.Txt;
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@ -1118,7 +1119,7 @@ public class Faction extends Entity<Faction> implements FactionsParticipator, MP
|
|||||||
List<Player> ret = new MassiveList<>();
|
List<Player> ret = new MassiveList<>();
|
||||||
|
|
||||||
// Fill Ret
|
// Fill Ret
|
||||||
for (Player player : MUtil.getOnlinePlayers())
|
for (Player player : Bukkit.getOnlinePlayers())
|
||||||
{
|
{
|
||||||
if (MUtil.isntPlayer(player)) continue;
|
if (MUtil.isntPlayer(player)) continue;
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@ import com.massivecraft.massivecore.ModuloRepeatTask;
|
|||||||
import com.massivecraft.massivecore.ps.PS;
|
import com.massivecraft.massivecore.ps.PS;
|
||||||
import com.massivecraft.massivecore.util.MUtil;
|
import com.massivecraft.massivecore.util.MUtil;
|
||||||
import com.massivecraft.massivecore.util.TimeUnit;
|
import com.massivecraft.massivecore.util.TimeUnit;
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
public class TaskPlayerPowerUpdate extends ModuloRepeatTask
|
public class TaskPlayerPowerUpdate extends ModuloRepeatTask
|
||||||
@ -40,7 +41,7 @@ public class TaskPlayerPowerUpdate extends ModuloRepeatTask
|
|||||||
MFlag flagPowerGain = MFlag.getFlagPowergain();
|
MFlag flagPowerGain = MFlag.getFlagPowergain();
|
||||||
|
|
||||||
// For each player ...
|
// For each player ...
|
||||||
for (Player player : MUtil.getOnlinePlayers())
|
for (Player player : Bukkit.getOnlinePlayers())
|
||||||
{
|
{
|
||||||
// ... that is a living player ...
|
// ... that is a living player ...
|
||||||
if (MUtil.isntPlayer(player)) continue;
|
if (MUtil.isntPlayer(player)) continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user