Skip to content

Commit

Permalink
Fixed #19
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminforras committed Feb 17, 2017
1 parent e473501 commit 9c38a77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/hu/tryharddood/myzone/Commands/MainCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void interact(Player player, ClickType action, InventoryClickEvent event)
value = "Unknown";
}

Bukkit.dispatchCommand(player, "zone flag " + myZone.zoneManager.getRegion(region.getId()).getZoneName() + " " + flag.getName() + " " + value.toString());
Bukkit.dispatchCommand(player, "zone flag " + myZone.zoneManager.getRegionName(region.getId()) + " " + flag.getName() + " " + value.toString());

event.getInventory().setItem(event.getSlot(), new ItemBuilder(Material.SIGN).setTitle(flag.getName()).addLore(prefix).build());
player.updateInventory();
Expand Down Expand Up @@ -123,7 +123,7 @@ public void interact(Player player, ClickType action, InventoryClickEvent event)

String itemName = event.getCurrentItem().getItemMeta().getDisplayName();
String playerName = ChatColor.stripColor(itemName);
Bukkit.dispatchCommand(player, "zone members " + region.getId() + " remove " + playerName);
Bukkit.dispatchCommand(player, "zone members " + myZone.zoneManager.getRegionName(region.getId()) + " remove " + playerName);
}
};
private InventoryMenuListener removeOwnerListener = new InventoryMenuListener() {
Expand All @@ -148,7 +148,7 @@ public void interact(Player player, ClickType action, InventoryClickEvent event)

String itemName = event.getCurrentItem().getItemMeta().getDisplayName();
String playerName = ChatColor.stripColor(itemName);
Bukkit.dispatchCommand(player, "zone owners " + region.getId() + " remove " + playerName);
Bukkit.dispatchCommand(player, "zone owners " + myZone.zoneManager.getRegionName(region.getId()) + " remove " + playerName);
}
};

Expand Down

0 comments on commit 9c38a77

Please sign in to comment.