Skip to content

Commit

Permalink
Bugs Fix:
Browse files Browse the repository at this point in the history
 Corrected the permission link for item use outsider.
  • Loading branch information
cobrex1 committed Nov 12, 2023
1 parent b391c3d commit f65a198
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

<groupId>me.cobrex</groupId>
<artifactId>TownyMenu</artifactId>
<version>1.8.0</version>
<version>1.8.1</version>

<properties>

<main.class>me.cobrex.townymenu.TownyMenuPlugin</main.class>

<foundation.version>6.5.6</foundation.version>
<foundation.version>6.5.8</foundation.version>

<java.version>1.8</java.version>

Expand Down
12 changes: 10 additions & 2 deletions src/main/java/me/cobrex/townymenu/town/TownMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,14 @@ public ToggleSettingsMenu(Town town) {

setSize(9 * 2);

// ButtonReturnBack.setItemStack(ItemCreator
// .of(CompMaterial.APPLE)
// .name("Return Back")
// .lore("", "Click to return back")
// .modelData(5)
// .make());


setTitle(Localization.TownMenu.ToggleMenu.MENU_TITLE);
Button.setInfoButtonTitle(Localization.MENU_INFORMATION);
ButtonReturnBack.setTitle(Localization.Back_Button.BACK_BUTTON_TITLE);
Expand Down Expand Up @@ -647,7 +655,7 @@ public void onClickedInMenu(Player player, Menu menu, ClickType click) {
@Override
public ItemStack getItem() {
return ItemCreator.of(HeadDatabaseUtil.HeadDataUtil.createItem(String.valueOf(Settings.NATION_BUILD)))
.name(Localization.TownMenu.PlayerPermissionsMenu.BREAK_NATION)
.name(Localization.TownMenu.PlayerPermissionsMenu.BUILD_NATION)
.modelData(Integer.valueOf(Settings.NATION_BUILD_CMD))
.lore("")
.lore(Localization.TownMenu.PlayerPermissionsMenu.BUILD_NATION2, town.getPermissions().getNationPerm(TownyPermission.ActionType.BUILD) ? Localization.TownMenu.PlayerPermissionsMenu.TRUE_MSG : Localization.TownMenu.PlayerPermissionsMenu.FALSE_MSG, "", Localization.TownMenu.PlayerPermissionsMenu.CHANGE).make();
Expand Down Expand Up @@ -825,7 +833,7 @@ public ItemStack getItem() {
.name(Localization.TownMenu.PlayerPermissionsMenu.USE_OUTSIDER)
.modelData(Integer.valueOf(Settings.OUTSIDER_ITEM_USE_CMD))
.lore("")
.lore(Localization.TownMenu.PlayerPermissionsMenu.USE_OUTSIDER2, town.getPermissions().getAllyPerm(TownyPermission.ActionType.ITEM_USE) ? Localization.TownMenu.PlayerPermissionsMenu.TRUE_MSG : Localization.TownMenu.PlayerPermissionsMenu.FALSE_MSG, "", Localization.TownMenu.PlayerPermissionsMenu.CHANGE).make();
.lore(Localization.TownMenu.PlayerPermissionsMenu.USE_OUTSIDER2, town.getPermissions().getOutsiderPerm(TownyPermission.ActionType.ITEM_USE) ? Localization.TownMenu.PlayerPermissionsMenu.TRUE_MSG : Localization.TownMenu.PlayerPermissionsMenu.FALSE_MSG, "", Localization.TownMenu.PlayerPermissionsMenu.CHANGE).make();
}
};

Expand Down

0 comments on commit f65a198

Please sign in to comment.