Jump to content

Recommended Posts

Posted

Hello folks! ,

 

In this guide i will teach you how to put a command to check the online count of players on your server ... ( .online ) you can change this if you want to .

 

So what we need is a pack .. i will use l2jfree interlude , so you take the SVN then you open eclipse .. you checkout the gameserver then you have to download this

 

Click me

 

So you go to your workspace ( Mine is  C:\workspace\L2_GameServer_IL ) then u go on net\sf\l2j\gameserver\handler\voicedcommandhandlers u put that inside .. then u go on

 

net\sf\l2j\gameserver\handler\

 

you open VoicedCommandHandler.java and u will see this

 

package net.sf.l2j.gameserver.handler;

 

import javolution.util.FastMap;

import net.sf.l2j.Config;

import net.sf.l2j.gameserver.handler.voicedcommandhandlers.CastleDoors;

import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Wedding;

 

import org.apache.commons.logging.Log;

import org.apache.commons.logging.LogFactory;

 

 

you have to put

 

import net.sf.l2j.gameserver.handler.voicedcommandhandlers.CastleDoors;

import net.sf.l2j.gameserver.handler.voicedcommandhandlers.OnlinePlayers;

import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Wedding;

 

then

 

if u scroll down you will see this

 

{

_datatable = new FastMap<String, IVoicedCommandHandler>();

       registerVoicedCommandHandler(new CastleDoors());

       if(Config.ALLOW_WEDDING)

       {

 

you have to put this

 

       registerVoicedCommandHandler(new OnlinePlayers());

 

so we have

 

 

{

_datatable = new FastMap<String, IVoicedCommandHandler>();

       registerVoicedCommandHandler(new CastleDoors());

       registerVoicedCommandHandler(new OnlinePlayers());

       if(Config.ALLOW_WEDDING)

       {

 

then you compile your pack with maven ( the gs ) and when u log in you have to write .online and u will see the amount of players that are online

 

fxdolj5trwh86qax4stq.jpg

 

Something like this.

 

Regards,

Vent

  • 3 months later...
Posted

well this doesnt work on l2j :( is there any other way to see how many players are online? ty

 

this works on all packs , gimme the error that pop ups and i will fix it ..

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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