summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandunban.java
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2014-07-14 21:23:56 +0100
committerKHobbits <rob@khobbits.co.uk>2014-07-14 21:23:56 +0100
commit8c40d295c1495addc4c609c100d198736a9ee523 (patch)
tree2fd93eb22b49f011132c021aafbd32894c02313c /Essentials/src/com/earth2me/essentials/commands/Commandunban.java
parenta942b8bbdfe0756dd4f53d34c8725fdc52359ebc (diff)
downloadEssentials-8c40d295c1495addc4c609c100d198736a9ee523.tar
Essentials-8c40d295c1495addc4c609c100d198736a9ee523.tar.gz
Essentials-8c40d295c1495addc4c609c100d198736a9ee523.tar.lz
Essentials-8c40d295c1495addc4c609c100d198736a9ee523.tar.xz
Essentials-8c40d295c1495addc4c609c100d198736a9ee523.zip
Clean up tempban messages to be a little clearer.
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandunban.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandunban.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandunban.java b/Essentials/src/com/earth2me/essentials/commands/Commandunban.java
index db358e0dd..b4cb70bf5 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandunban.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandunban.java
@@ -30,7 +30,7 @@ public class Commandunban extends EssentialsCommand
{
final User user = getPlayer(server, args, 0, true, true);
name = user.getName();
- Bukkit.getBanList(BanList.Type.NAME).pardon(name);
+ ess.getServer().getBanList(BanList.Type.NAME).pardon(name);
}
catch (NoSuchFieldException e)
{
@@ -40,12 +40,12 @@ public class Commandunban extends EssentialsCommand
{
throw new Exception(tl("playerNotFound"), e);
}
- Bukkit.getBanList(BanList.Type.NAME).pardon(name);
+ ess.getServer().getBanList(BanList.Type.NAME).pardon(name);
}
final String senderName = sender.isPlayer() ? sender.getPlayer().getDisplayName() : Console.NAME;
server.getLogger().log(Level.INFO, tl("playerUnbanned", senderName, name));
-
+
ess.broadcastMessage("essentials.ban.notify", tl("playerUnbanned", senderName, name));
}
}