Jump to content

[SHARE] .setgm Command


Recommended Posts

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!

Link to comment
Share on other sites

at last give the right credits !

 

[help] .setgm command

http://www.maxcheaters.com/forum/index.php?topic=147838.0

 

hahahahaha owned

change credits or lock it :p

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...