mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
Add local echo to tempban command.
This commit is contained in:
parent
ae1804758a
commit
6cfb5084e1
1 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,7 @@ import static com.earth2me.essentials.I18n.tl;
|
|||
import com.earth2me.essentials.User;
|
||||
import com.earth2me.essentials.utils.DateUtil;
|
||||
import java.util.GregorianCalendar;
|
||||
import java.util.logging.Level;
|
||||
import org.bukkit.Server;
|
||||
|
||||
|
||||
|
@ -59,6 +60,8 @@ public class Commandtempban extends EssentialsCommand
|
|||
user.setBanned(true);
|
||||
user.kickPlayer(banReason);
|
||||
|
||||
ess.broadcastMessage("essentials.ban.notify", tl("playerBanned", senderName, user.getName(), banReason, DateUtil.formatDateDiff(banTimestamp)));
|
||||
final String message = tl("playerBanned", senderName, user.getName(), banReason, DateUtil.formatDateDiff(banTimestamp));
|
||||
server.getLogger().log(Level.INFO, message);
|
||||
ess.broadcastMessage("essentials.ban.notify", message);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue