mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
This is why you don't program when you haven't slept in 20 hours
This commit is contained in:
parent
447ce97f24
commit
92e6cedb14
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user