mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-22 02:25:49 +01:00
Wand sub command code was in the wrong location
This commit is contained in:
parent
d4776748bb
commit
becd114d87
@ -55,7 +55,6 @@ public class AdvancedPortalsCommand implements CommandExecutor, TabCompleter {
|
|||||||
|
|
||||||
if (sender.hasPermission("advancedportals.portal")) {
|
if (sender.hasPermission("advancedportals.portal")) {
|
||||||
if (args.length > 0) { switch (args[0].toLowerCase()) {
|
if (args.length > 0) { switch (args[0].toLowerCase()) {
|
||||||
case "wand":
|
|
||||||
case "warp":
|
case "warp":
|
||||||
if (args.length == 2 && player.hasPermission("advancedportals.portal.warp")){
|
if (args.length == 2 && player.hasPermission("advancedportals.portal.warp")){
|
||||||
for (AdvancedPortal portal: Portal.portals){
|
for (AdvancedPortal portal: Portal.portals){
|
||||||
@ -72,6 +71,7 @@ public class AdvancedPortalsCommand implements CommandExecutor, TabCompleter {
|
|||||||
}
|
}
|
||||||
sendMenu(player, "Help Menu: Warp", "\u00A76/" + command + " warp <name> \u00A7a- teleport to warp name");
|
sendMenu(player, "Help Menu: Warp", "\u00A76/" + command + " warp <name> \u00A7a- teleport to warp name");
|
||||||
break;
|
break;
|
||||||
|
case "wand":
|
||||||
case "selector":
|
case "selector":
|
||||||
String ItemID = config.getConfig().getString("AxeItemId");
|
String ItemID = config.getConfig().getString("AxeItemId");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user