diff options
| author | Léo Kosman <leo.kosman@proton.me> | 2024-08-23 13:11:40 +0200 |
|---|---|---|
| committer | Léo Kosman <leo.kosman@proton.me> | 2024-08-23 13:11:40 +0200 |
| commit | 007ad4b3f9eb0d683f72a3008ec3208c1121217d (patch) | |
| tree | 62841ac7491a23195d7c98cccc3f8ed3e2e8b231 | |
| parent | da7d7c502a8c99dfeae5d3294c54ad4f892edcb7 (diff) | |
style: remove commented and unused code
| -rw-r--r-- | src/main/java/world/anhgelus/molehunt/Game.java | 9 | ||||
| -rw-r--r-- | src/main/java/world/anhgelus/molehunt/Molehunt.java | 4 |
2 files changed, 0 insertions, 13 deletions
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); |
