Fix a bug with temp banning offline users

This commit is contained in:
snowleo 2011-07-07 19:11:57 +02:00
parent f2d9b10e87
commit 3b838cc23d

View File

@ -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);