Made energy warnings stay for longer

This commit is contained in:
NewGarbo 2015-11-18 08:32:48 +00:00
parent 185f19fb6a
commit 77f234e5f5
2 changed files with 9 additions and 9 deletions

View File

@ -37,7 +37,7 @@ public class ClanEnergyTracker extends MiniPlugin
{
for (Player player : clan.getOnlinePlayers())
{
UtilTextMiddle.display(C.cRed + "Urgent", "Clan Energy is almost depleted");
UtilTextMiddle.display(C.cRed + "Urgent", "Clan Energy is almost depleted", 20, 200, 80, player);
UtilPlayer.message(player, F.main("Energy", "To top up your Clan's Energy, head to the shop and go to the Energy Shop!"));
}
}
@ -56,7 +56,7 @@ public class ClanEnergyTracker extends MiniPlugin
{
for (Player player : clan.getOnlinePlayers())
{
UtilTextMiddle.display(C.cGold + "Warning", "Clan Energy is almost depleted");
UtilTextMiddle.display(C.cGold + "Warning", "Clan Energy is almost depleted", 20, 150, 60, player);
UtilPlayer.message(player, F.main("Energy", "To top up your Clan's Energy, head to the shop and go to the Energy Shop!"));
}
}
@ -75,7 +75,7 @@ public class ClanEnergyTracker extends MiniPlugin
{
for (Player player : clan.getOnlinePlayers())
{
UtilTextMiddle.display(C.cYellow + "Energy", "Clan Energy is running low", player);
UtilTextMiddle.display(C.cYellow + "Energy", "Clan Energy is running low", 20, 100, 40, player);
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())
{
UtilTextMiddle.display(C.cYellow + "Energy", "Clan Energy is running low", player);
UtilTextMiddle.display(C.cYellow + "Energy", "Clan Energy is running low", 20, 100, 40, player);
UtilPlayer.message(player, F.main("Energy", "To top up your Clan's Energy, head to the shop and go to the Energy Shop!"));
}
}

View File

@ -783,11 +783,11 @@ public class ClansUtility
return false;
}
if (clan.getClaims() >= clan.getClaimsMax())
{
UtilPlayer.message(caller, F.main("Clans", "Your Clan cannot claim more Territory."));
return false;
}
// if (clan.getClaims() >= clan.getClaimsMax())
// {
// UtilPlayer.message(caller, F.main("Clans", "Your Clan cannot claim more Territory."));
// return false;
// }
// Boxed
if (checkBox(caller.getLocation().getChunk(), 4))