Sync with L2JServer Jan 24th 2015.
This commit is contained in:
@@ -20,7 +20,7 @@ package handlers.admincommandhandlers;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.l2jserver.gameserver.datatables.AdminTable;
|
||||
import com.l2jserver.gameserver.data.xml.impl.AdminData;
|
||||
import com.l2jserver.gameserver.handler.AdminCommandHandler;
|
||||
import com.l2jserver.gameserver.handler.IAdminCommandHandler;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
@@ -68,7 +68,7 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
if (id < 1000000)
|
||||
{
|
||||
subCommand = "admin_create_item";
|
||||
if (!AdminTable.getInstance().hasAccess(subCommand, activeChar.getAccessLevel()))
|
||||
if (!AdminData.getInstance().hasAccess(subCommand, activeChar.getAccessLevel()))
|
||||
{
|
||||
activeChar.sendMessage("You don't have the access right to use this command!");
|
||||
_log.warning("Character " + activeChar.getName() + " tryed to use admin command " + subCommand + ", but have no access to it!");
|
||||
@@ -80,7 +80,7 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
else
|
||||
{
|
||||
subCommand = "admin_spawn_once";
|
||||
if (!AdminTable.getInstance().hasAccess(subCommand, activeChar.getAccessLevel()))
|
||||
if (!AdminData.getInstance().hasAccess(subCommand, activeChar.getAccessLevel()))
|
||||
{
|
||||
activeChar.sendMessage("You don't have the access right to use this command!");
|
||||
_log.warning("Character " + activeChar.getName() + " tryed to use admin command " + subCommand + ", but have no access to it!");
|
||||
|
Reference in New Issue
Block a user