From 007ad4b3f9eb0d683f72a3008ec3208c1121217d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Kosman?= Date: Fri, 23 Aug 2024 13:11:40 +0200 Subject: style: remove commented and unused code --- src/main/java/world/anhgelus/molehunt/Game.java | 9 --------- src/main/java/world/anhgelus/molehunt/Molehunt.java | 4 ---- 2 files changed, 13 deletions(-) (limited to 'src/main') diff --git a/src/main/java/world/anhgelus/molehunt/Game.java b/src/main/java/world/anhgelus/molehunt/Game.java index 3092bc9..df90044 100644 --- a/src/main/java/world/anhgelus/molehunt/Game.java +++ b/src/main/java/world/anhgelus/molehunt/Game.java @@ -40,7 +40,6 @@ public class Game { } else { n = Molehunt.CONFIG.MOLE_COUNT; } -// final int n = (server.getCurrentPlayerCount() - server.getCurrentPlayerCount() % 4)/4; final var playerManager = server.getPlayerManager(); @@ -152,14 +151,6 @@ public class Game { }, 4*1000); } - public int getRemaining() { - return remaining; - } - - public Text getRemainingText() { - return Text.of("Time remaining: "+ TimeUtils.printTime(remaining)); - } - public Text getShortRemainingText() { return Text.of("§c" + TimeUtils.printShortTime(remaining)); } diff --git a/src/main/java/world/anhgelus/molehunt/Molehunt.java b/src/main/java/world/anhgelus/molehunt/Molehunt.java index 078afa6..1752d26 100644 --- a/src/main/java/world/anhgelus/molehunt/Molehunt.java +++ b/src/main/java/world/anhgelus/molehunt/Molehunt.java @@ -42,10 +42,6 @@ public class Molehunt implements ModInitializer { game.start(); return Command.SINGLE_SUCCESS; })); -// command.then(literal("time").executes(context -> { -// context.getSource().sendFeedback(() -> game.getRemainingText(), false); -// return Command.SINGLE_SUCCESS; -// })); command.then(literal("timer").requires(ServerCommandSource::isExecutedByPlayer).then( literal("show").executes(context -> { timerVisibility.put(context.getSource().getPlayer(), true); -- cgit v1.2.3