Sync with L2JServer Jan 24th 2015.
This commit is contained in:
@@ -23,7 +23,7 @@ import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.l2jserver.Config;
|
||||
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.L2Clan;
|
||||
@@ -190,7 +190,7 @@ public class AdminMenu implements IAdminCommandHandler
|
||||
if (st.countTokens() > 1)
|
||||
{
|
||||
String subCommand = "admin_ban_char";
|
||||
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!");
|
||||
@@ -207,7 +207,7 @@ public class AdminMenu implements IAdminCommandHandler
|
||||
if (st.countTokens() > 1)
|
||||
{
|
||||
String subCommand = "admin_unban_char";
|
||||
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