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:
Waverunner
2014-08-13 16:21:51 -04:00
parent c8c99fc7dd
commit da568bac1d
10 changed files with 299 additions and 85 deletions
+3 -3
View File
@@ -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;
}