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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...