mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-12-27 19:37:44 +01:00
Add list command and add missing break
This commit is contained in:
parent
4fd0275d3a
commit
830c6e0879
@ -1,6 +1,7 @@
|
||||
package com.sekwah.advancedportals;
|
||||
|
||||
import com.sekwah.advancedportals.listeners.Listeners;
|
||||
import com.sekwah.advancedportals.portals.AdvancedPortal;
|
||||
import com.sekwah.advancedportals.portals.Portal;
|
||||
import com.sekwah.advancedportals.portals.PortalArg;
|
||||
import org.bukkit.Location;
|
||||
@ -386,11 +387,19 @@ public class AdvancedPortalsCommand implements CommandExecutor, TabCompleter {
|
||||
player.sendMessage("\u00A7c[\u00A77AdvancedPortals\u00A7c] No regions selected!");
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "reload":
|
||||
sender.sendMessage("\u00A7a[\u00A7eAdvancedPortals\u00A7a] Reloaded values!");
|
||||
Listeners.reloadValues(plugin);
|
||||
Portal.loadPortals();
|
||||
break;
|
||||
case "list" :
|
||||
String message = "\u00A7eAdvancedPortals\u00A7a :";
|
||||
for (AdvancedPortal portal : Portal.Portals) {
|
||||
message = message + " " + portal.portalName;
|
||||
}
|
||||
player.sendMessage(message);
|
||||
break;
|
||||
default:
|
||||
PluginMessages.UnknownCommand(sender, command);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user