mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 13:44:43 +00:00
Implemented custom commands.
This commit is contained in:
1 parent
5f4a153bf0
commit
705bf53aea
2 files changed
+27
No files matched your search
@@ -39,6 +39,10 @@ public abstract class AbstractNpcAPI {
|
||||
public AbstractNpcAPI() {
|
||||
}
|
||||
|
||||
public abstract void registerICommand(ICommand command);
|
||||
|
||||
public abstract ICommand getICommand(String commandName, int priorityLevel);
|
||||
|
||||
public abstract void addGlobalObject(String key, Object obj);
|
||||
|
||||
public abstract void removeGlobalObject(String key);
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
package noppes.npcs.api;
|
||||
|
||||
public interface ICommand {
|
||||
String getCommandName();
|
||||
|
||||
String getCommandUsage();
|
||||
|
||||
int getPermissionLevel();
|
||||
|
||||
void setCommandName(String commandName);
|
||||
|
||||
void setCommandUsage(String commandUsage);
|
||||
|
||||
void setPermissionLevel(int permissionLevel);
|
||||
|
||||
String[] getAliases();
|
||||
|
||||
void addAliases(String... aliases);
|
||||
|
||||
boolean hasAlias(String alias);
|
||||
|
||||
void removeAlias(String alias);
|
||||
}
|
||||
Reference in new issue
Block a user