Fixed Admin commands part2

This commit is contained in:
Zing
2014-08-17 01:18:34 -07:00
parent 5edce825ff
commit 6de085b3da
6 changed files with 104 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") || command.getCommandName().equals("server") || command.getCommandName().equals("teleport")
|| command.getCommandName().equals("teleportto") || command.getCommandName().equals("teleporttarget") ) {
|| command.getCommandName().equals("teleportto") || command.getCommandName().equals("teleporttarget") || command.getCommandName().equals("createcreature") || command.getCommandName().equals("giveitem") ) {
String accessLevel = core.adminService.getAccessLevelFromDB(actor.getClient().getAccountId());
String filePath = "accesslevels/" + accessLevel + ".txt";
System.out.println(command.getCommandName() + " was just used by an admin with accessLevel: " + accessLevel + ".");