Skip to content

Commit 0c19f84

Browse files
committed
change: added a test announcement to the game menu
1 parent 9530f39 commit 0c19f84

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/main/java/net/azisaba/lobby/gui/GameMenuGui.java

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public GameMenuGui(final @NotNull Player player) {
4949
inventory.setItem(42, wikiItem());
5050

5151
inventory.setItem(49, closeItem());
52+
inventory.setItem(53, testAnnounceItem());
5253

5354
updateService.runTaskTimer(AzisabaLobby.instance(), 0, 15);
5455
}
@@ -138,7 +139,7 @@ private boolean shouldOpenGameMenu(final @NotNull Game game, final @NotNull Clic
138139
itemMeta.setLore(Arrays.asList(
139140
"",
140141
ChatColor.GREEN + player.getName() + ChatColor.GRAY + "さんアジ鯖にようこそ!",
141-
ChatColor.DARK_GRAY + "合計" + ChatColor.AQUA + AzisabaLobby.instance().gameMap().values().stream().mapToInt(Game::getPlayerCount).sum() + ChatColor.DARK_GRAY + "人がプレイ中"
142+
ChatColor.DARK_GRAY + "合計" + ChatColor.AQUA + AzisabaLobby.instance().gameMap().values().stream().mapToInt(Game::getPlayerCount).sum() + "人" + ChatColor.DARK_GRAY + "がプレイ中"
142143
));
143144
itemStack.setItemMeta(itemMeta);
144145
return itemStack;
@@ -231,4 +232,20 @@ private boolean shouldOpenGameMenu(final @NotNull Game game, final @NotNull Clic
231232
itemStack.setItemMeta(itemMeta);
232233
return itemStack;
233234
}
235+
236+
private @NotNull ItemStack testAnnounceItem() {
237+
final ItemStack itemStack = new ItemStack(Material.PAPER);
238+
final ItemMeta itemMeta = itemStack.getItemMeta();
239+
itemMeta.setDisplayName(ChatColor.LIGHT_PURPLE + "新しいメニューをテスト中");
240+
itemMeta.setLore(Arrays.asList(
241+
ChatColor.GRAY + "アジ鯖では,ユーザー体験の改善に向けた,",
242+
ChatColor.GRAY + "取り組みを進めています.",
243+
ChatColor.GRAY + "現在,取り組みの一環として新しいゲームメニュー",
244+
ChatColor.GRAY + "をテストしています.",
245+
ChatColor.GRAY + "不便な点や,その他,ご意見がございましたら,",
246+
ChatColor.GRAY + "Discordで担当者(" + ChatColor.WHITE + "@tksimeji" + ChatColor.GRAY + ")までお気軽にDMをお寄せください."
247+
));
248+
itemStack.setItemMeta(itemMeta);
249+
return itemStack;
250+
}
234251
}

0 commit comments

Comments
 (0)