Skip to content

Commit 42385fa

Browse files
authored
Merge pull request #71 from myth-MC/dev/1.2
1.2.1
2 parents 3bfdf7f + d91f103 commit 42385fa

File tree

13 files changed

+23
-23
lines changed

13 files changed

+23
-23
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.0
1+
1.2.1

api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>ovh.mythmc</groupId>
88
<artifactId>banco</artifactId>
9-
<version>1.2.0</version>
9+
<version>1.2.1</version>
1010
</parent>
1111

1212
<artifactId>banco-api</artifactId>

api/src/main/java/ovh/mythmc/banco/api/configuration/BancoSettings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class BancoSettings {
3434
@Comment({"", "Configuration for commands"})
3535
private CommandsConfig commands = new CommandsConfig();
3636

37-
@Comment({"", "Configuration for menus/GUIs"})
38-
private MenusConfig menus = new MenusConfig();
37+
@Comment({"", "Configuration for dialogs (or chest-based GUIs in Bukkit)"})
38+
private DialogsConfig dialogs = new DialogsConfig();
3939

4040
}

api/src/main/java/ovh/mythmc/banco/api/configuration/sections/MenusConfig.java renamed to api/src/main/java/ovh/mythmc/banco/api/configuration/sections/DialogsConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
@Configuration
77
@Getter
8-
public class MenusConfig {
8+
public class DialogsConfig {
99

1010
private InfoMenu info = new InfoMenu("ʙᴀɴᴄᴏ", "Displays detailed information about the plugin and server environment.", "<yellow><bold>%s</bold></yellow>", "<gray>%s</gray>");
1111

platform-bukkit/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>ovh.mythmc</groupId>
88
<artifactId>banco</artifactId>
9-
<version>1.2.0</version>
9+
<version>1.2.1</version>
1010
</parent>
1111

1212
<artifactId>banco-platform-bukkit</artifactId>

platform-bukkit/src/main/java/ovh/mythmc/banco/bukkit/menu/impl/BalanceTopMenu.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public final class BalanceTopMenu extends BasicMenu {
2020

2121
@Override
2222
protected Inventory createInventory() {
23-
return Bukkit.createInventory(null, 9, Banco.get().getSettings().get().getMenus().getBalanceTop().title());
23+
return Bukkit.createInventory(null, 9, Banco.get().getSettings().get().getDialogs().getBalanceTop().title());
2424
}
2525

2626
@Override
@@ -39,7 +39,7 @@ public void decorate() {
3939
final OfflinePlayer player = optPlayerReference.get().toOfflinePlayer();
4040
String balance = MessageUtil.format(entry.getValue()) + Banco.get().getSettings().get().getCurrency().getSymbol();
4141

42-
String itemName = String.format(Banco.get().getSettings().get().getMenus().getBalanceTop().format(),
42+
String itemName = String.format(Banco.get().getSettings().get().getDialogs().getBalanceTop().format(),
4343
slot+1,
4444
player.getName(),
4545
balance

platform-bukkit/src/main/java/ovh/mythmc/banco/bukkit/menu/impl/InfoMenu.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public final class InfoMenu extends BasicMenu {
2727

2828
@Override
2929
protected Inventory createInventory() {
30-
return Bukkit.createInventory(null, 9, Banco.get().getSettings().get().getMenus().getInfo().title());
30+
return Bukkit.createInventory(null, 9, Banco.get().getSettings().get().getDialogs().getInfo().title());
3131
}
3232

3333
@Override
@@ -59,8 +59,8 @@ private MenuButton getInfoButton(Material material, String key, String value) {
5959
}
6060

6161
private MenuButton getButton(ItemStack itemStack, String key, String value) {
62-
String name = String.format(Banco.get().getSettings().get().getMenus().getInfo().keyFormat(), key);
63-
String lore = String.format(Banco.get().getSettings().get().getMenus().getInfo().valueFormat(), value);
62+
String name = String.format(Banco.get().getSettings().get().getDialogs().getInfo().keyFormat(), key);
63+
String lore = String.format(Banco.get().getSettings().get().getDialogs().getInfo().valueFormat(), value);
6464

6565
ItemMeta itemMeta = itemStack.getItemMeta();
6666
itemMeta.setDisplayName(name);

platform-common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>ovh.mythmc</groupId>
88
<artifactId>banco</artifactId>
9-
<version>1.2.0</version>
9+
<version>1.2.1</version>
1010
</parent>
1111

1212
<artifactId>banco-common</artifactId>

platform-paper/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>ovh.mythmc</groupId>
88
<artifactId>banco</artifactId>
9-
<version>1.2.0</version>
9+
<version>1.2.1</version>
1010
</parent>
1111

1212
<artifactId>banco-platform-paper</artifactId>

platform-paper/src/main/java/ovh/mythmc/banco/paper/dialog/BalanceTopDialog.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public final class BalanceTopDialog {
2525
public void open(@NotNull Player player) {
2626
Banco.get().getAccountManager().getTopAsync(1024000).thenAccept(map -> {
2727
final List<DialogBody> dialogBodyList = new ArrayList<>();
28-
dialogBodyList.add(DialogBody.plainMessage(Component.text(Banco.get().getSettings().get().getMenus().getBalanceTop().description())));
28+
dialogBodyList.add(DialogBody.plainMessage(Component.text(Banco.get().getSettings().get().getDialogs().getBalanceTop().description())));
2929

3030
int index = 0;
3131

@@ -38,7 +38,7 @@ public void open(@NotNull Player player) {
3838
continue;
3939

4040
final String balance = MessageUtil.format(entry.getValue()) + Banco.get().getSettings().get().getCurrency().getSymbol();
41-
final String formattedText = String.format(Banco.get().getSettings().get().getMenus().getBalanceTop().format(),
41+
final String formattedText = String.format(Banco.get().getSettings().get().getDialogs().getBalanceTop().format(),
4242
index+1,
4343
optPlayerReference.get().toOfflinePlayer().getName(),
4444
balance
@@ -52,7 +52,7 @@ public void open(@NotNull Player player) {
5252
}
5353

5454
final Dialog dialog = Dialog.create(builder -> builder.empty()
55-
.base(DialogBase.builder(MiniMessage.miniMessage().deserialize(Banco.get().getSettings().get().getMenus().getBalanceTop().title()))
55+
.base(DialogBase.builder(MiniMessage.miniMessage().deserialize(Banco.get().getSettings().get().getDialogs().getBalanceTop().title()))
5656
.body(dialogBodyList)
5757
.build())
5858
.type(DialogType.notice())

0 commit comments

Comments
 (0)