summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-03-12 01:00:57 +0000
committerKHobbits <rob@khobbits.co.uk>2012-03-12 01:00:57 +0000
commitca8007af6dd8cf0d74429cefb7405eab382e642f (patch)
tree286c54b76aadc9a200472261f33bb6270cc04845 /Essentials/src/com/earth2me/essentials/commands/Commandtempban.java
parent4be87b9299e0ebc481d3e03c0400eebbea89d87e (diff)
downloadEssentials-ca8007af6dd8cf0d74429cefb7405eab382e642f.tar
Essentials-ca8007af6dd8cf0d74429cefb7405eab382e642f.tar.gz
Essentials-ca8007af6dd8cf0d74429cefb7405eab382e642f.tar.lz
Essentials-ca8007af6dd8cf0d74429cefb7405eab382e642f.tar.xz
Essentials-ca8007af6dd8cf0d74429cefb7405eab382e642f.zip
Update offline user check.
Add ban reason to /seen
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandtempban.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandtempban.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java b/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java
index 144d19d15..25c457a20 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java
@@ -2,7 +2,6 @@ package com.earth2me.essentials.commands;
import com.earth2me.essentials.Console;
import static com.earth2me.essentials.I18n._;
-import com.earth2me.essentials.OfflinePlayer;
import com.earth2me.essentials.User;
import com.earth2me.essentials.Util;
import org.bukkit.Server;
@@ -25,7 +24,7 @@ public class Commandtempban extends EssentialsCommand
throw new NotEnoughArgumentsException();
}
final User user = getPlayer(server, args, 0, true);
- if (user.getBase() instanceof OfflinePlayer)
+ if (!user.isOnline())
{
if (sender instanceof Player
&& !ess.getUser(sender).isAuthorized("essentials.tempban.offline"))