Jump to content

Recommended Posts

Posted

English:With This Code You Can See All  Online Players  And All  Gm Players.

Is My First Code So Don't Make Bad Replies.

Info About Code: com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Online.java

 

 

 

Greece:Me Auton Ton Kodika Mporeis Na Deis Olous Tous Online Players Kai Olous Tous Gms Players

Eine o protos mou kodikas parakalw na min kanete asxima replies..

Plirofories Tou Kodika: com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Online.java

 

/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jfrozen.gameserver.handler.voicedcommandhandlers;

import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler;
import com.l2jfrozen.gameserver.model.L2World;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;

public class Online implements IVoicedCommandHandler
{
private static String[] _voicedCommands =
{
	"online"
};

@Override
public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
{
	if(command.equalsIgnoreCase("online"))
	{
		activeChar.sendMessage("======<Status Online>======");
		activeChar.sendMessage("Players Online: " + L2World.getInstance().getAllPlayers().size() + "");
		activeChar.sendMessage("GMs Online: " + L2World.getInstance().getAllGMs().size() + "");
		activeChar.sendMessage("=======================");
	}
	return true;
}

@Override
public String[] getVoicedCommandList()
{
	return _voicedCommands;
}
}

 

 

Posted

Hi, where to put this code in?

 

package com.l2jfrozen.gameserver.handler.voicedcommandhandlers

 

 

Another online command.. :troll:

Posted

package com.l2jfrozen.gameserver.handler.voicedcommandhandlers

 

 

Another online command.. :troll:

 

Devlin's teacher.

Posted

activeChar.sendMessage("GMs Online: " + L2World.getInstance().getAllGMs().size() + "");
		activeChar.sendMessage("=======================");

Gj mate, i was searching about this  :troll:

 

/gmlist isnt enought good for me.


 

Posted

activeChar.sendMessage("GMs Online: " + L2World.getInstance().getAllGMs().size() + "");
		activeChar.sendMessage("=======================");

Gj mate, i was searching about this  :troll:

 

/gmlist isnt enought good for me.


If you  don't like it don't make beastly replies...as i said is my first! code.

Guest
This topic is now closed to further replies.


×
×
  • 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 Disabled AdBlock