From 92603f87f08778272f1766ff3f0ff65f041b4d02 Mon Sep 17 00:00:00 2001 From: Niilyx _ <43385037+Niilyx@users.noreply.github.com> Date: Sat, 14 Sep 2024 04:21:41 +0200 Subject: [PATCH] moved HasPerm command to better folder --- src/main/java/fr/efreicraft/ecatup/ECATUP.java | 1 + .../efreicraft/ecatup/commands/{ => permissions}/HasPerm.java | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/main/java/fr/efreicraft/ecatup/commands/{ => permissions}/HasPerm.java (96%) diff --git a/src/main/java/fr/efreicraft/ecatup/ECATUP.java b/src/main/java/fr/efreicraft/ecatup/ECATUP.java index 946bed9..98de662 100644 --- a/src/main/java/fr/efreicraft/ecatup/ECATUP.java +++ b/src/main/java/fr/efreicraft/ecatup/ECATUP.java @@ -5,6 +5,7 @@ import fr.efreicraft.ecatup.commands.*; import fr.efreicraft.ecatup.commands.gamemode.*; import fr.efreicraft.ecatup.commands.permissions.GroupsCom; +import fr.efreicraft.ecatup.commands.permissions.HasPerm; import fr.efreicraft.ecatup.commands.permissions.PlayersCom; import fr.efreicraft.ecatup.commands.speeds.FlySpeed; import fr.efreicraft.ecatup.commands.speeds.ResetSpeed; diff --git a/src/main/java/fr/efreicraft/ecatup/commands/HasPerm.java b/src/main/java/fr/efreicraft/ecatup/commands/permissions/HasPerm.java similarity index 96% rename from src/main/java/fr/efreicraft/ecatup/commands/HasPerm.java rename to src/main/java/fr/efreicraft/ecatup/commands/permissions/HasPerm.java index 6033378..342d1d5 100644 --- a/src/main/java/fr/efreicraft/ecatup/commands/HasPerm.java +++ b/src/main/java/fr/efreicraft/ecatup/commands/permissions/HasPerm.java @@ -1,4 +1,4 @@ -package fr.efreicraft.ecatup.commands; +package fr.efreicraft.ecatup.commands.permissions; import fr.efreicraft.animus.endpoints.PlayerService; import fr.efreicraft.animus.invoker.ApiException; @@ -41,7 +41,6 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command if (!player.isOnline()) fromDB = true; permission = permission.toLowerCase(); - if (permission.endsWith(".*")) permission = permission.substring(0, permission.indexOf(".*")); if (fromDB) { try {