mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-07 19:40:23 +01:00
Fix a bug with temp banning offline users
This commit is contained in:
parent
f2d9b10e87
commit
3b838cc23d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user