diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-03-12 01:00:57 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-03-12 01:00:57 +0000 |
commit | ca8007af6dd8cf0d74429cefb7405eab382e642f (patch) | |
tree | 286c54b76aadc9a200472261f33bb6270cc04845 /Essentials/src/com/earth2me/essentials/commands/Commandtempban.java | |
parent | 4be87b9299e0ebc481d3e03c0400eebbea89d87e (diff) | |
download | Essentials-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.java | 3 |
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")) |