mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Merge pull request #141 from Wilee999/patch-5
Implement /tfipbanlist purge adminAction.
This commit is contained in:
commit
b3b182e753
@ -4,6 +4,7 @@ import java.util.Arrays;
|
|||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import me.StevenLawson.TotalFreedomMod.TFM_Log;
|
import me.StevenLawson.TotalFreedomMod.TFM_Log;
|
||||||
|
import me.StevenLawson.TotalFreedomMod.TFM_Util;
|
||||||
import me.StevenLawson.TotalFreedomMod.TFM_ServerInterface;
|
import me.StevenLawson.TotalFreedomMod.TFM_ServerInterface;
|
||||||
import me.StevenLawson.TotalFreedomMod.TFM_SuperadminList;
|
import me.StevenLawson.TotalFreedomMod.TFM_SuperadminList;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
@ -26,6 +27,7 @@ public class Command_tfipbanlist extends TFM_Command
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
TFM_Util.adminAction(sender.getName(), "Purging the IP ban list", true);
|
||||||
TFM_ServerInterface.wipeIpBans();
|
TFM_ServerInterface.wipeIpBans();
|
||||||
sender.sendMessage(ChatColor.GRAY + "IP ban list has been purged.");
|
sender.sendMessage(ChatColor.GRAY + "IP ban list has been purged.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user