From 3b838cc23df917f71a1ca25a1ad57e2087e88716 Mon Sep 17 00:00:00 2001 From: snowleo Date: Thu, 7 Jul 2011 19:11:57 +0200 Subject: [PATCH] Fix a bug with temp banning offline users --- .../src/com/earth2me/essentials/commands/Commandtempban.java | 1 - 1 file changed, 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java b/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java index 57f346f9c..e4a151f38 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java @@ -40,7 +40,6 @@ public class Commandtempban extends EssentialsCommand String time = getFinalArg(args, 1); long banTimestamp = Util.parseDateDiff(time, true); - p = ess.getUser(server.matchPlayer(args[0]).get(0)); String banReason = Util.format("tempBanned", Util.formatDateDiff(banTimestamp)); p.setBanReason(banReason); p.setBanTimeout(banTimestamp);