Thread: Players Online

Results 1 to 4 of 4
  1. #1 Players Online 
    Registered Member
    Join Date
    Apr 2010
    Posts
    24
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    How can I get the count of current players online on the server & it be shown in any given spot on a webpage and updated every X amount of seconds?


    Thanks in advance,
    heatrepeat.
    Reply With Quote  
     

  2. #2  
    The King
    Guest
    You can do something with + PlayerHandler.getPlayerCount().

    However, the following reduces server lag and it isn't as annoying as a constant playercount on the screen:

    Code:
            if (command.equalsIgnoreCase("players")) {
                sM("There are currently " + PlayerHandler.getPlayerCount() + " players online!");
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2010
    Posts
    24
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by The King View Post
    You can do something with + PlayerHandler.getPlayerCount().

    However, the following reduces server lag and it isn't as annoying as a constant playercount on the screen:

    Code:
            if (command.equalsIgnoreCase("players")) {
                sM("There are currently " + PlayerHandler.getPlayerCount() + " players online!");
    I mean to display it on a webpage, like so:

    & have it updated every X amount of seconds.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Apr 2010
    Posts
    24
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    BUMP! I'm still needing help with this.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •