1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-17 20:11:21 +02:00

Fix a bug with temp banning offline users

This commit is contained in:
snowleo
2011-07-07 19:11:57 +02:00
parent 2b28185e70
commit 145786e604

View File

@@ -40,7 +40,6 @@ public class Commandtempban extends EssentialsCommand
String time = getFinalArg(args, 1); String time = getFinalArg(args, 1);
long banTimestamp = Util.parseDateDiff(time, true); long banTimestamp = Util.parseDateDiff(time, true);
p = ess.getUser(server.matchPlayer(args[0]).get(0));
String banReason = Util.format("tempBanned", Util.formatDateDiff(banTimestamp)); String banReason = Util.format("tempBanned", Util.formatDateDiff(banTimestamp));
p.setBanReason(banReason); p.setBanReason(banReason);
p.setBanTimeout(banTimestamp); p.setBanTimeout(banTimestamp);