From 1f4ce0d10dbdd6451fa02e1403fa1880c80102c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8F=E3=81=81=E3=83=BC=E3=82=8A=E3=81=83?= Date: Sun, 28 May 2023 21:26:28 +0900 Subject: [PATCH] show victory team when player force end the game --- .../java/quarri6343/overcrafted/core/ui/AdminMenuRow4.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/quarri6343/overcrafted/core/ui/AdminMenuRow4.java b/src/main/java/quarri6343/overcrafted/core/ui/AdminMenuRow4.java index 05cafdb..a324009 100644 --- a/src/main/java/quarri6343/overcrafted/core/ui/AdminMenuRow4.java +++ b/src/main/java/quarri6343/overcrafted/core/ui/AdminMenuRow4.java @@ -17,6 +17,7 @@ import quarri6343.overcrafted.api.object.IDishPile; import quarri6343.overcrafted.api.object.IOCTeam; import quarri6343.overcrafted.core.OCLogic; +import quarri6343.overcrafted.core.handler.order.ScoreBoardHandler; import quarri6343.overcrafted.impl.item.OCItems; import quarri6343.overcrafted.utils.ItemCreator; @@ -73,7 +74,7 @@ public static void addElements(PaginatedGui gui, Player player) { gui.setItem(33, startButton); GuiItem endButton = new GuiItem(new ItemCreator(Material.RED_WOOL).setName(Component.text("ゲームを強制終了")).setLore(getCanTerminateGameDesc()).create(), event -> { - getLogic().endGame((Player) event.getWhoClicked(), null, false, true); + getLogic().endGame((Player) event.getWhoClicked(), ScoreBoardHandler.getHighestScoreTeam(), true, true); UIAdminMenu.openUI((Player) event.getWhoClicked()); }); gui.setItem(35, endButton);