Skip to content

Commit

Permalink
moved HasPerm command to better folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Niilyx committed Sep 14, 2024
1 parent 8435560 commit 92603f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/main/java/fr/efreicraft/ecatup/ECATUP.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 92603f8

Please sign in to comment.