mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
Fixed double login bug, added gm permissions, added checks to gm commands, update your postgresql db
This commit is contained in:
@@ -95,6 +95,9 @@ public class CommandService implements INetworkDispatch {
|
||||
System.out.println("NULL Object");
|
||||
return;
|
||||
}
|
||||
|
||||
if(command.isGmCommand() && !client.isGM())
|
||||
return;
|
||||
|
||||
CreatureObject actor = (CreatureObject) client.getParent();
|
||||
|
||||
@@ -131,6 +134,15 @@ public class CommandService implements INetworkDispatch {
|
||||
|
||||
}
|
||||
|
||||
public BaseSWGCommand registerGmCommand(String name) {
|
||||
|
||||
BaseSWGCommand command = new BaseSWGCommand(name.toLowerCase());
|
||||
command.setGmCommand(true);
|
||||
commandLookup.add(command);
|
||||
return command;
|
||||
|
||||
}
|
||||
|
||||
public void registerAlias(String name, String target) {
|
||||
Vector<BaseSWGCommand> commands = new Vector<BaseSWGCommand>(commandLookup); // copy for thread safety
|
||||
BaseSWGCommand targetCommand = null;
|
||||
|
||||
Reference in New Issue
Block a user