Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
Warriorrrr authored and LlmDl committed Feb 21, 2022
1 parent 7ef8962 commit 55b8e3c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/com/palmergames/bukkit/towny/command/BaseCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import com.palmergames.bukkit.towny.object.Town;
import com.palmergames.bukkit.towny.object.Translatable;
import com.palmergames.bukkit.towny.object.Translation;
import com.palmergames.bukkit.towny.permissions.PermissionNodes;
import com.palmergames.bukkit.towny.utils.NameUtil;
import com.palmergames.bukkit.util.BukkitTools;

Expand Down Expand Up @@ -307,14 +306,4 @@ public static void catchConsole(CommandSender sender) throws TownyException {
if (sender instanceof ConsoleCommandSender)
throw new TownyException(Translatable.of("msg_err_player_only"));
}

public static void testPermission(CommandSender sender, PermissionNodes node) throws TownyException {
if (!TownyUniverse.getInstance().getPermissionSource().testPermission(sender, node.getNode()))
throw new TownyException(Translatable.of("msg_err_command_disable"));
}

public static void testPermission(CommandSender sender, String node) throws TownyException {
if (!TownyUniverse.getInstance().getPermissionSource().testPermission(sender, node))
throw new TownyException(Translatable.of("msg_err_command_disable"));
}
}

0 comments on commit 55b8e3c

Please sign in to comment.