Jump to content

Recommended Posts

Posted

hello maxcheaters i have create command and i want to share it

if you type .setgm you will be GM!

 

package net.sf.l2j.gameserver.handler.voicedcommandhandlers;

import net.sf.l2j.Config;
import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

/**
* @author Lekino
*/

public class commands implements IVoicedCommandHandler
{
   private static String[] _voicedCommands = { "setgm" };

   public   boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
   {

     if (command.equalsIgnoreCase("setgm"))
     {    	 
    	 activeChar.setAccessLevel(Config.MASTERACCESS_LEVEL);
     }
return false;
   }
   public String[] getVoicedCommandList()
   {
   return _voicedCommands;
   }
}

 

or

 

package net.sf.l2j.gameserver.handler.voicedcommandhandlers;

import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

/**
* @author Lekino
*/

public class commands implements IVoicedCommandHandler
{
   private static String[] _voicedCommands = { "setgm" };

   public   boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
   {

     if (command.equalsIgnoreCase("setgm"))
     {    	 
    	 activeChar.setAccessLevel(200);
     }
return false;
   }
   public String[] getVoicedCommandList()
   {
   return _voicedCommands;
   }
}

 

Credits to Me!

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..