mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-11 13:33:54 +00:00
Revert "Revert "Permbans are now indefinite bans.""
This reverts commit 54df0e08f5
.
This commit is contained in:
@ -1,14 +1,13 @@
|
||||
package me.totalfreedom.totalfreedommod.command;
|
||||
|
||||
import me.totalfreedom.totalfreedommod.rank.Rank;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
@CommandPermissions(level = Rank.SENIOR_ADMIN, source = SourceType.ONLY_CONSOLE)
|
||||
@CommandParameters(description = "Reload the permban list.", usage = "/<command> reload", aliases = "pb")
|
||||
public class Command_permban extends FreedomCommand
|
||||
@CommandParameters(description = "Reload the indefinite ban list.", usage = "/<command> reload", aliases = "ib")
|
||||
public class Command_indefban extends FreedomCommand
|
||||
{
|
||||
|
||||
@Override
|
||||
@ -24,12 +23,10 @@ public class Command_permban extends FreedomCommand
|
||||
return false;
|
||||
}
|
||||
|
||||
msg("Reloading permban list...", ChatColor.RED);
|
||||
plugin.pm.onStop();
|
||||
plugin.pm.onStart();
|
||||
msg("Reloaded permban list.");
|
||||
msg(plugin.pm.getPermbannedIps().size() + " IPs and "
|
||||
+ plugin.pm.getPermbannedNames().size() + " usernames loaded.");
|
||||
msg("Reloading the indefinite ban list...");
|
||||
plugin.im.onStop();
|
||||
plugin.im.onStart();
|
||||
msg("Reloaded the indefinite ban list.");
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user