mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-30 00:15:57 -04:00
Added Required Abillity check for commands
This commit is contained in:
@@ -102,6 +102,9 @@ public class CommandService implements INetworkDispatch {
|
||||
|
||||
CreatureObject actor = (CreatureObject) client.getParent();
|
||||
|
||||
if (!actor.hasAbility(command.getRequiredAbility()))
|
||||
return;
|
||||
|
||||
if (actor.hasCooldown(command.getCommandName()))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user