diff options
author | KHobbits <rob@khobbits.co.uk> | 2013-01-09 20:59:27 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-01-09 21:04:58 +0000 |
commit | 9fdb754d1c797c8ef58625a271b666f463a09e83 (patch) | |
tree | f85e4367967703161e61f830ab0d9e313b859779 /Essentials/src/com/earth2me/essentials/commands/Commandtempban.java | |
parent | 8a7866ecca2db4491670cd6b73071eec8862b816 (diff) | |
download | Essentials-9fdb754d1c797c8ef58625a271b666f463a09e83.tar Essentials-9fdb754d1c797c8ef58625a271b666f463a09e83.tar.gz Essentials-9fdb754d1c797c8ef58625a271b666f463a09e83.tar.lz Essentials-9fdb754d1c797c8ef58625a271b666f463a09e83.tar.xz Essentials-9fdb754d1c797c8ef58625a271b666f463a09e83.zip |
Multiline kick messages and tempban countdown.
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 fd959472c..cf706aa8b 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java @@ -4,7 +4,6 @@ import com.earth2me.essentials.Console; import static com.earth2me.essentials.I18n._; import com.earth2me.essentials.User; import com.earth2me.essentials.Util; -import java.util.Calendar; import java.util.GregorianCalendar; import org.bukkit.Server; import org.bukkit.command.CommandSender; @@ -47,7 +46,7 @@ public class Commandtempban extends EssentialsCommand final long banTimestamp = Util.parseDateDiff(time, true); final long maxBanLength = ess.getSettings().getMaxTempban() * 1000; - if(maxBanLength > 0 && ((banTimestamp - GregorianCalendar.getInstance().getTimeInMillis()) > maxBanLength) && !(ess.getUser(sender).isAuthorized("essentials.tempban.unlimited"))) + if (maxBanLength > 0 && ((banTimestamp - GregorianCalendar.getInstance().getTimeInMillis()) > maxBanLength) && !(ess.getUser(sender).isAuthorized("essentials.tempban.unlimited"))) { sender.sendMessage(_("oversizedTempban")); throw new NoChargeException(); |