Skip to content

Commit

Permalink
show victory team when player force end the game
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarri6343 committed May 28, 2023
1 parent 3c6c570 commit 1f4ce0d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 1f4ce0d

Please sign in to comment.