mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-28 13:12:54 -04:00
Changed quest data to retrieve info from Datatables, Added basis for automation of QuestTask's
Fixed /waypoint method for getting planet crc's Fixed quest crc's for quest scripts in children folders Fixed some admin commands not being executed (no longer case sensitive) Changed accessLevel to be gotten from database until ready to switch to client
This commit is contained in:
@@ -689,9 +689,9 @@ public class CommandService implements INetworkDispatch {
|
||||
public void processCommand(CreatureObject actor, SWGObject target, BaseSWGCommand command, int actionCounter, String commandArgs) {
|
||||
|
||||
if (command.getGodLevel() > 0 || command.getCommandName().equals("setgodmode")) {
|
||||
String accessLevel = actor.getClient().getAccessLevel();
|
||||
String accessLevel = core.adminService.getAccessLevelFromDB(actor.getClient().getAccountId());
|
||||
String filePath = "accesslevels/" + accessLevel + ".txt";
|
||||
|
||||
|
||||
if(FileUtilities.doesFileExist(filePath)) {
|
||||
Scanner scanner;
|
||||
try {
|
||||
@@ -700,7 +700,7 @@ public class CommandService implements INetworkDispatch {
|
||||
|
||||
while(scanner.hasNextLine()) {
|
||||
String commandName = scanner.nextLine();
|
||||
if(command.getCommandName().equals(commandName)) {
|
||||
if(command.getCommandName().equalsIgnoreCase(commandName)) {
|
||||
levelHasCommand = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user