fixed clan energy warnings being sent to all players on the server instead of the clan.

This commit is contained in:
NewGarbo 2015-11-18 08:13:13 +00:00
parent 6da628abe1
commit 185f19fb6a
1 changed files with 4 additions and 2 deletions

View File

@ -75,7 +75,7 @@ public class ClanEnergyTracker extends MiniPlugin
{ {
for (Player player : clan.getOnlinePlayers()) for (Player player : clan.getOnlinePlayers())
{ {
UtilTextMiddle.display(C.cYellow + "Energy", "Clan Energy is running low"); UtilTextMiddle.display(C.cYellow + "Energy", "Clan Energy is running low", player);
UtilPlayer.message(player, F.main("Energy", "To top up your Clan's Energy, head to the shop and go to the Energy Shop!")); UtilPlayer.message(player, F.main("Energy", "To top up your Clan's Energy, head to the shop and go to the Energy Shop!"));
} }
} }
@ -94,7 +94,7 @@ public class ClanEnergyTracker extends MiniPlugin
{ {
for (Player player : clan.getOnlinePlayers()) for (Player player : clan.getOnlinePlayers())
{ {
UtilTextMiddle.display(C.cYellow + "Energy", "Clan Energy is running low"); UtilTextMiddle.display(C.cYellow + "Energy", "Clan Energy is running low", player);
UtilPlayer.message(player, F.main("Energy", "To top up your Clan's Energy, head to the shop and go to the Energy Shop!")); UtilPlayer.message(player, F.main("Energy", "To top up your Clan's Energy, head to the shop and go to the Energy Shop!"));
} }
} }
@ -133,6 +133,8 @@ public class ClanEnergyTracker extends MiniPlugin
return clan.isOnlineNow(); return clan.isOnlineNow();
} }
break; break;
default:
break;
} }