diff options
author | Alexander Schepp <schneeleo@gmail.com> | 2012-12-28 09:37:40 -0800 |
---|---|---|
committer | Alexander Schepp <schneeleo@gmail.com> | 2012-12-28 09:37:40 -0800 |
commit | 52b104aca5633166f5ac586292560401197920de (patch) | |
tree | 0b64876f9149281b5329493fcdbb890917acdba0 | |
parent | 4bb275e1b7ed878e608bd558d7d482299a6ebea8 (diff) | |
parent | 1f98fe710f4649f27789dddbfdbc380e7b01583f (diff) | |
download | Essentials-52b104aca5633166f5ac586292560401197920de.tar Essentials-52b104aca5633166f5ac586292560401197920de.tar.gz Essentials-52b104aca5633166f5ac586292560401197920de.tar.lz Essentials-52b104aca5633166f5ac586292560401197920de.tar.xz Essentials-52b104aca5633166f5ac586292560401197920de.zip |
Merge pull request #229 from necrodoom/patch-9
fix tempban permission check
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandtempban.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java b/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java index 97aa2ea3b..fd959472c 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java @@ -47,7 +47,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(); |