Jump to content
  • 0

How To Disable .menu Command


Question

5 answers to this question

Recommended Posts

  • 0
Posted

Well i tried to delete menu.java but then it gives me an error when i compile it.

 

I have no idea how to disable it :(

private VoicedCommandHandler()
	{
		_datatable = new FastMap<String, IVoicedCommandHandler>();
		
		registerVoicedCommandHandler(new Voting());
		
		if (Config.BANKING_SYSTEM_ENABLED)
		{
			registerVoicedCommandHandler(new BankingCmd());
		}
		
		if (Config.CTF_COMMAND)
		{
			registerVoicedCommandHandler(new CTFCmd());
		}
		
		if (Config.TVT_COMMAND)
		{
			registerVoicedCommandHandler(new TvTCmd());
		}
		
		if (Config.DM_COMMAND)
		{
			registerVoicedCommandHandler(new DMCmd());
		}
		
		if (Config.L2JMOD_ALLOW_WEDDING)
		{
			registerVoicedCommandHandler(new Wedding());
		}
		
		registerVoicedCommandHandler(new StatsCmd());
		
		if (Config.ALLOW_VERSION_COMMAND)
		{
			registerVoicedCommandHandler(new VersionCmd());
		}
		
		if (Config.ALLOW_AWAY_STATUS)
		{
			registerVoicedCommandHandler(new AwayCmd());
		}
		
		if (Config.ALLOW_FARM1_COMMAND || Config.ALLOW_FARM2_COMMAND || Config.ALLOW_PVP1_COMMAND || Config.ALLOW_PVP2_COMMAND)
		{
			registerVoicedCommandHandler(new FarmPvpCmd());
		}
		
		if (Config.ALLOW_ONLINE_VIEW)
		{
			registerVoicedCommandHandler(new Online());
		}
		
		if (Config.OFFLINE_TRADE_ENABLE && Config.OFFLINE_COMMAND2)
		{
			registerVoicedCommandHandler(new OfflineShop());
		}
		if(Config.NEW_PLAYER_PINCODE)
		{	
		   registerVoicedCommandHandler(new pincode());
		}
		if(Config.TOP_PVP_ENABLE)
		{
			//registerVoicedCommandHandler(new TopPvp());
		}
		if(Config.ENABLE_QUIZ_EVENT)
		{
			registerVoicedCommandHandler(new Quiz());
		}
		if(Config.ENABLE_HIDDENBASTARD_EVENT)
		{   
		   registerVoicedCommandHandler(new HiddenBastardCmd());
		}
		registerVoicedCommandHandler(new menu());
		_log.config("VoicedCommandHandler: Loaded " + _datatable.size() + " handlers.");

rO4sa7a.png

  • 0
Posted

You can either delete this line

 

registerVoicedCommandHandler(new menu());

 

or insert a simple boolean in order to enable/disable it when you wish(like the rest of voicedcommands).

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..