Changed login handler to set client's accessLevel

This commit is contained in:
Waverunner
2014-08-13 09:18:24 -04:00
parent d01c0e8b70
commit c8c99fc7dd
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -689,7 +689,7 @@ 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 = core.adminService.getAccessLevelFromDB(actor.getClient().getAccountId());
String accessLevel = actor.getClient().getAccessLevel();
String filePath = "accesslevels/" + accessLevel + ".txt";
if(FileUtilities.doesFileExist(filePath)) {