mirror of
https://github.com/LOOHP/Limbo.git
synced 2026-06-08 05:51:43 +00:00
Clean up whitelist changes
This commit is contained in:
@@ -165,14 +165,16 @@ public class DefaultCommands implements CommandExecutor, TabCompletor {
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (args[0].equalsIgnoreCase("allowlist")) {
|
||||
if (sender.hasPermission("limboserver.allowlist")) {
|
||||
|
||||
if (args[0].equalsIgnoreCase("whitelist")) {
|
||||
if (sender.hasPermission("limboserver.whitelist")) {
|
||||
if (args.length != 2) {
|
||||
sender.sendMessage(ChatColor.RED + "Invalid usage!");
|
||||
} else if (!args[1].equalsIgnoreCase("reload")) {
|
||||
sender.sendMessage(ChatColor.RED + "Invalid usage!");
|
||||
} else {
|
||||
Limbo.getInstance().reloadAllowlist();
|
||||
Limbo.getInstance().getServerProperties().reloadWhitelist();
|
||||
sender.sendMessage("Whitelist has been reloaded");
|
||||
}
|
||||
} else {
|
||||
sender.sendMessage(ChatColor.RED + "You do not have permission to use that command!");
|
||||
|
||||
Reference in New Issue
Block a user