From 4abbb7f34562cd490fa80b757648d5299ad73e65 Mon Sep 17 00:00:00 2001 From: Mateusz Stankiewicz Date: Sat, 13 Apr 2024 22:17:00 +0200 Subject: [PATCH] fixed some stuff --- pom.xml | 2 +- .../minecraftblockshuffle/commands/BlockShuffleCommand.java | 4 ++++ src/main/resources/plugin.yml | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b915a46..a004bd0 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ me.matistan05 MinecraftBlockShuffle - 1.4 + 1.4.1 jar MinecraftBlockShuffle diff --git a/src/main/java/me/matistan05/minecraftblockshuffle/commands/BlockShuffleCommand.java b/src/main/java/me/matistan05/minecraftblockshuffle/commands/BlockShuffleCommand.java index 5a24880..28ac9d6 100644 --- a/src/main/java/me/matistan05/minecraftblockshuffle/commands/BlockShuffleCommand.java +++ b/src/main/java/me/matistan05/minecraftblockshuffle/commands/BlockShuffleCommand.java @@ -388,6 +388,10 @@ public void run() { return true; } for (int i = 0; i < players.size(); i++) { + System.out.println(finished.get(i) + " " + points.get(i)); + if (main.getConfig().getInt("gameMode") == 1 && finished.get(i)) { + points.set(i, points.get(i) - 1); + } finished.set(i, true); } playersMessage(ChatColor.DARK_GREEN + " skipped the round!"); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index c8390fc..6d2a1ba 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -17,4 +17,7 @@ permissions: blockshuffle.start: true blockshuffle.reset: true blockshuffle.list: true + blockshuffle.skip: true + blockshuffle.ban: true + blockshuffle.unban: true blockshuffle.help: true \ No newline at end of file