mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-28 13:12:54 -04:00
Fixed problem where commands that didn't have required abilities wouldn't work
This commit is contained in:
@@ -102,7 +102,7 @@ public class CommandService implements INetworkDispatch {
|
||||
|
||||
CreatureObject actor = (CreatureObject) client.getParent();
|
||||
|
||||
if (!actor.hasAbility(command.getRequiredAbility()))
|
||||
if (command.getRequiredAbility().length() > 0 && !actor.hasAbility(command.getRequiredAbility()))
|
||||
return;
|
||||
|
||||
if (actor.hasCooldown(command.getCommandName()))
|
||||
|
||||
Reference in New Issue
Block a user