mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-27 16:02:32 +00:00
Updates for banning
Removing the ban workaround We might remove the ban commands completely.
This commit is contained in:
parent
b828222176
commit
4c6cc5ced0
15 changed files with 141 additions and 197 deletions
|
@ -47,8 +47,8 @@ public class Commandtempban extends EssentialsCommand
|
|||
final String banReason = Util.format("tempBanned", Util.formatDateDiff(banTimestamp));
|
||||
player.setBanReason(banReason);
|
||||
player.setBanTimeout(banTimestamp);
|
||||
player.setBanned(true);
|
||||
player.kickPlayer(banReason);
|
||||
ess.getBans().banByName(player.getName());
|
||||
String senderName = sender instanceof Player ? ((Player)sender).getDisplayName() : Console.NAME;
|
||||
|
||||
for(Player p : server.getOnlinePlayers())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue