aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/world/anhgelus/molehunt/Game.java9
-rw-r--r--src/main/java/world/anhgelus/molehunt/Molehunt.java4
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);