From b9d52c7447547a5881f141f1709e2e9006e2e927 Mon Sep 17 00:00:00 2001 From: Mats Date: Tue, 9 Jul 2024 23:54:44 +0200 Subject: [PATCH] temp --- modules/vistas-server/dependency-reduced-pom.xml | 6 ++++++ plugin/src/main/bash/data.bin | 2 +- .../modules/commands/subcommands/RegionsSubCommand.java | 7 ++++--- plugin/src/main/resources/data.bin | 2 +- plugin/src/main/resources/openaudiomc-build.properties | 4 ++-- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/modules/vistas-server/dependency-reduced-pom.xml b/modules/vistas-server/dependency-reduced-pom.xml index cdfe11857..ab3662c8e 100644 --- a/modules/vistas-server/dependency-reduced-pom.xml +++ b/modules/vistas-server/dependency-reduced-pom.xml @@ -152,6 +152,12 @@ junit 4.13.2 test + + + hamcrest-core + org.hamcrest + + diff --git a/plugin/src/main/bash/data.bin b/plugin/src/main/bash/data.bin index 5113dc0a2..cdcf31297 100755 --- a/plugin/src/main/bash/data.bin +++ b/plugin/src/main/bash/data.bin @@ -1 +1 @@ -BUILD_NUM="1445" +BUILD_NUM="1448" diff --git a/plugin/src/main/java/com/craftmend/openaudiomc/spigot/modules/commands/subcommands/RegionsSubCommand.java b/plugin/src/main/java/com/craftmend/openaudiomc/spigot/modules/commands/subcommands/RegionsSubCommand.java index ca5a2138e..d200a088e 100644 --- a/plugin/src/main/java/com/craftmend/openaudiomc/spigot/modules/commands/subcommands/RegionsSubCommand.java +++ b/plugin/src/main/java/com/craftmend/openaudiomc/spigot/modules/commands/subcommands/RegionsSubCommand.java @@ -87,17 +87,18 @@ public void onExecute(User sender, String[] args) { return; } - if (args[0].equalsIgnoreCase("temp") && args.length == 4) { + // todo!!! THESE ARG CHECKS NEED TO EXCLUDE PARAMETERS + if (args[0].equalsIgnoreCase("temp") && args.length >= 4) { delegateTo("temp", sender, args); return; } - if (args[0].equalsIgnoreCase("create") && (args.length == 3 || args.length == 4)) { + if (args[0].equalsIgnoreCase("create") && args.length >= 3) { delegateTo("create", sender, args); return; } - if (args[0].equalsIgnoreCase("delete") && args.length == 2) { + if (args[0].equalsIgnoreCase("delete") && args.length >= 2) { delegateTo("delete", sender, args); return; } diff --git a/plugin/src/main/resources/data.bin b/plugin/src/main/resources/data.bin index 5113dc0a2..cdcf31297 100755 --- a/plugin/src/main/resources/data.bin +++ b/plugin/src/main/resources/data.bin @@ -1 +1 @@ -BUILD_NUM="1445" +BUILD_NUM="1448" diff --git a/plugin/src/main/resources/openaudiomc-build.properties b/plugin/src/main/resources/openaudiomc-build.properties index 474a1b31a..c98807889 100644 --- a/plugin/src/main/resources/openaudiomc-build.properties +++ b/plugin/src/main/resources/openaudiomc-build.properties @@ -1,3 +1,3 @@ -BUILD_VERSION="1445" -BUILD_COMMIT="28cd0ac842b271f5be2e8efe9dc60208b96ad077" +BUILD_VERSION="1448" +BUILD_COMMIT="dcdaab31ba30e4e2af1e1b3603fd9c448af2f13c" BUILD_AUTHOR="Mats"