this codebase is a mess

This commit is contained in:
2022-02-05 14:43:49 -06:00
parent eebb34cd1c
commit d8a8f33425
5 changed files with 12 additions and 9 deletions

View File

@ -95,16 +95,14 @@ public abstract class PlexCommand extends Command implements PluginIdentifiableC
{
if (!plexPlayer.getRankFromString().isAtLeast(getLevel()))
{
send(sender, tl("noPermissionRank", ChatColor.stripColor(getLevel().getLoginMSG())));
return true;
throw new CommandFailException(PlexUtils.tl("noPermissionRank", ChatColor.stripColor(getLevel().getLoginMSG())));
}
}
else if (plugin.getSystem().equalsIgnoreCase("permissions"))
{
if (!player.hasPermission(perms.permission()))
{
send(sender, tl("noPermissionNode", perms.permission()));
return true;
throw new CommandFailException(PlexUtils.tl("noPermissionNode", perms.permission()));
}
}
else