This is why you don't program when you haven't slept in 20 hours

This commit is contained in:
nossr50 2019-05-18 08:04:55 -07:00
parent 447ce97f24
commit 92e6cedb14

View File

@ -54,10 +54,6 @@ public class XprateCommand implements TabExecutor {
mcMMO.p.getServer().broadcastMessage(LocaleLoader.getString("Commands.Event.Stop.Subtitle"));
}
for(Player player : Bukkit.getServer().getOnlinePlayers())
{
if(player.isOp() || Permissions.adminChat(player))
{
String senderName = LocaleLoader.getString("Server.ConsoleName");
if(sender instanceof Player)
@ -65,6 +61,10 @@ public class XprateCommand implements TabExecutor {
senderName = ((Player) sender).getDisplayName();
}
for(Player player : Bukkit.getServer().getOnlinePlayers())
{
if(player.isOp() || Permissions.adminChat(player))
{
player.sendMessage(LocaleLoader.getString("XPRate.AdminDetails.End", senderName));
}
}
@ -122,10 +122,7 @@ public class XprateCommand implements TabExecutor {
mcMMO.p.getServer().broadcastMessage(LocaleLoader.getString("Commands.Event.XP", newXpRate));
}
for(Player player : Bukkit.getServer().getOnlinePlayers())
{
if(player.isOp() || Permissions.adminChat(player))
{
String senderName = LocaleLoader.getString("Server.ConsoleName");
if(sender instanceof Player)
@ -133,6 +130,10 @@ public class XprateCommand implements TabExecutor {
senderName = ((Player) sender).getDisplayName();
}
for(Player player : Bukkit.getServer().getOnlinePlayers())
{
if(player.isOp() || Permissions.adminChat(player))
{
player.sendMessage(LocaleLoader.getString("XPRate.AdminDetails.Start", senderName, newXpRate));
}
}