Skip to content
This repository was archived by the owner on Jun 7, 2022. It is now read-only.

Commit ca1e925

Browse files
author
Dytanic
committed
added /cloud whitelist
1 parent bba5798 commit ca1e925

File tree

1 file changed

+7
-0
lines changed
  • cloudnet-api/cloudnet-api-bridge/src/main/java/de/dytanic/cloudnet/bridge/internal/command/proxied

1 file changed

+7
-0
lines changed

cloudnet-api/cloudnet-api-bridge/src/main/java/de/dytanic/cloudnet/bridge/internal/command/proxied/CommandCloud.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ public void execute(CommandSender commandSender, String[] args)
8080
switch (args.length)
8181
{
8282
case 1:
83+
if (args[0].equalsIgnoreCase("whitelist"))
84+
{
85+
commandSender.sendMessage(CloudAPI.getInstance().getPrefix() + "Whitelisted players from " + CloudProxy.getInstance().getProxyGroup().getName());
86+
for (String entry : CloudProxy.getInstance().getProxyGroup().getProxyConfig().getWhitelist())
87+
commandSender.sendMessage("§7- " + entry);
88+
}
8389
if (args[0].equalsIgnoreCase("rl") && commandSender.hasPermission("cloudnet.command.cloud.reload"))
8490
{
8591
CloudAPI.getInstance().sendCloudCommand("reload config");
@@ -542,6 +548,7 @@ public boolean isAccepted(Template value)
542548
CloudAPI.getInstance().getPrefix() + "§7/cloud toggle maintenance",
543549
CloudAPI.getInstance().getPrefix() + "§7/cloud toggle maintenance <time>",
544550
CloudAPI.getInstance().getPrefix() + "§7/cloud setMaxPlayers <maxonlinecount>",
551+
CloudAPI.getInstance().getPrefix() + "§7/cloud whitelist",
545552
CloudAPI.getInstance().getPrefix() + "§7/cloud whitelist <add : remove> <name>",
546553
CloudAPI.getInstance().getPrefix() + "§7/cloud start <group> <count>",
547554
CloudAPI.getInstance().getPrefix() + "§7/cloud start <group> <template>",

0 commit comments

Comments
 (0)