[INACTIVE][WEB] OnlinePlayers v1.1 - Live web list of online players[1060]

Discussion in 'Inactive/Unsupported Plugins' started by Flabaliki, Jul 7, 2011.

  1. Offline

    TheOnlyLavaster

    Hey, this is random, but aren't you from Mod The Sims? :D I recognized your name.
    Anyway, thank you for this. It will help tons.
     
  2. Offline

    Flabaliki

  3. Offline

    ChrisPhoenix

    Hi !

    How do you install the script with a wordpress page?

    Thank you.
     
  4. Offline

    Jonchun

    ooh awesome plugin! I might use it :D
     
  5. Offline

    Flabaliki

    @ChrisPhoenix I suggest using one of the methods listed i under the Tips & Tricks spoiler. Probably using the iFrame method would be best.
     
  6. Offline

    ChrisPhoenix

    @Flabaliki

    Hi !

    Thank you very much for the tips. However, is it possible to customize the names in different colors depending on the group? I try to retrieve the variable in players.php and put conditions on each name.

    Otherwise it is a suggestion to set up groups according to color.

    Thank you.
     
  7. Offline

    admzero

    Please tell me what's the problem?
    1. After turning on the server, the status of "Online" is held for 2-3 minutes and change to "Offline"
    2. The list goes online only Ops who came first and shows the number of users 1. Ordinary users do not take into account at all, as well as after the first logged-Ops.

    As can be seen on the screenshot server is down and one user, while the server is running on it and are 4 simple user and 2 Ops.
    P.S. sorry for bad English.
     

    Attached Files:

    • 1.jpg
      1.jpg
      File size:
      5 KB
      Views:
      1
  8. Offline

    Flabaliki

    @ChrisPhoenix I may be able to do that when I have a bit more time.
    @admzero If the status is only held for 2 - 3 minutes, that means that the server isn't communicating with the online script. By default, if it has been more than 3 minutes since the server has contacted it, it will display as offline.
    Are you using permissions at all?
    Could you also post your two configuration files?
     
  9. Offline

    admzero

    The rights to the Linux machine tried 777 and 666, the same effect. Also created and corrected the path to a file "version.txt" as the server on the LAN and do not have Internet access, but I think it will have no effect.

    Noted in the log server has this error when a user logs on:
    Code:
    11:54:52 [INFO] SonicXP [/93.88.216.67:2583] logged in with entity id 144179 at
    ([utl-world] -43.5, 72.62000000476837, -136.5)
    11:54:52 [SEVERE] Could not pass event PLAYER_JOIN to OnlinePlayers
    java.lang.NoSuchMethodError: org.bukkit.entity.Player.hasPermission(Ljava/lang/S
    tring;)Z
    at com.flabaliki.onlineplayers.onlineplayers.online(onlineplayers.java:1
    41)
    at com.flabaliki.onlineplayers.onlineplayers$join.onPlayerJoin(onlinepla
    yers.java:101)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:244)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:321)
    at net.minecraft.server.ServerConfigurationManager.c(ServerConfiguration
    Manager.java:124)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:74)
    at net.minecraft.server.Packet1Login.a(SourceFile:43)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     

    Attached Files:

  10. Offline

    cjt3007

    I get this error in the terminal if I log in as a non-op user... they also don't show up in the online users list.

    I am using permissions and set the nodes like you said. OP users show in the online user list fine. I attached my permissions file.

    Code:
    00:09:43 [SEVERE] Could not pass event PLAYER_JOIN to OnlinePlayers
    java.lang.NoSuchMethodError: org.bukkit.entity.Player.hasPermission(Ljava/lang/String;)Z
        at com.flabaliki.onlineplayers.onlineplayers.online(onlineplayers.java:141)
        at com.flabaliki.onlineplayers.onlineplayers$join.onPlayerJoin(onlineplayers.java:101)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
        at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:124)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     

    Attached Files:

  11. Offline

    petergray8

    I have two small problems with this plugin.

    The first, is that the onlineplayer list on my website takes ~ 5 seconds longer than my page to load. I looked at the developer console to see if it was throwing any errors, and I get these two errors:
    Code:
    - GET http://domain.com/build/onlineplayers/undefined 404 (Not Found)
    - Uncaught TypeError: Cannot read property '1' of null in phpUpdate.js:38
    Line 38 of phpUpdate.js
    Code:
    document.getElementById(destination[1]).innerHTML = txt;
    It appears that "destination" is null, and it can't read the first array value of it due to this.


    ALSO


    I have a permissions problem. I have permissions enabled on my server (Permissions [Phoenix] fromhttp://forums.bukkit.org/threads/in...phoenix-discontinued-3-0-has-a-new-home.5974/)


    Giving a group the 'onlineplayers.member' permission as the config file states, their username does not change color in the onlineplayers list. The only users with a color are OPs. I would like to use onlineplayers.member to show my MODS in a color as well. My MOD Permissions are as follows:
    Code:
        MOD:
            default: false
            info:
                prefix: '&1'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'motd.*'
                - 'onlineplayers.member'
     
  12. Offline

    atlem

    need some help if somewone have time ,,
    geting this error
    Code:
    Warning: file() [function.file]: URL file-access is disabled in the server configuration in /home/www/test.mycraft.me/Website/players.php on line 171
    
    Warning: file(http://flabaliki.net/plugins/onlineplayers/version.txt) [function.file]: failed to open stream: no suitable wrapper could be found in /home/www/test.mycraft.me/Website/players.php on line 171
     
  13. Offline

    petergray8

    This error is usually thrown when a file is trying to include or somehow else access a remote file by the url when allow_url_fopen is set to off. I assume it must be on for this plugin to work correctly :S This is strange, because it can be a big security risk.

    To turn it on, you have to open your php.ini file and fine the line
    Code:
    allow_url_fopen = Off
    and change OFF to ON
     
  14. Offline

    atlem

    where is this option ?
     
  15. Offline

    petergray8


    Are you hosting your own webserver?
    What OS are you running?

    You need to open your php.ini file which is located wherever php is installed on your server. Google will be able to tell you where this is as well.

    If you are not hosting your own server, you may be able to do it with a .htaccess file.
     
  16. Offline

    echibahn

    Ok well I just installed this with bukkit 1060 and followed instructions exactly as you explained on what to do with config files and I went to the page to test and saw php errors:
    Code:
    Notice: Undefined offset: 2 in players\players.php on line 58 The server does not appear to have connected. Are you sure you entered the right URL in the plugin's configuration? The url must be:
     Notice: Undefined index: HTTPS in players\players.php on line 69 [URL]http://mcraft.no-ip.info/players/players.php[/URL]
    And yes, I entered the correct url in config and passwords do match. Here's config:
    Code:
    #Enter the url of the players.php file, including http://
    URL=http://mcraft.no-ip.info/players/players.php
    Console:
    Code:
    10:36:46 [INFO] [OnlinePlayers v1.0.1] Can not connect to web server.
    10:36:46 [INFO] [OnlinePlayers v1.0.1] Failed to start.
    10:36:46 [INFO] [OnlinePlayers v1.0.1] Disabled Successfully.
    Please help. :confused:
    Update: I just noticed my console pops up this message when someone logs in:
    Code:
    13:51:26 [INFO] [OnlinePlayers v1.0.1] Error: Passwords do not match.
    But they are exactly the same.... unless your plugin can't handle alphanumeric with symbols for some reason.
     
  17. Offline

    petergray8

    You say your passwords are the same, does this include any spaces or quotes? Also, I'm not sure if this is what the error message would always say or not, but it says "HTTPS" so are you using HTTPS on your server? If so you may need to set the url to https://../players.php instead of http://.../players.php.

    This is just guesses based on what I see. I'm not sure.
     
  18. Offline

    echibahn

    No, HTTPS is not enabled on my server. I tried it and same error when I go to http link and the https version threw a 404 at me. I checked my passwords again, there are no quotes or spaces it's just a string of symbols, letters, and numbers. I'm pretty confident I did everything correctly following instructions, yet it doesn't work. From my side it looks like some code is wrong in the php scripts and needs to be updated, but again i'm no expert so idk.
     
  19. Offline

    petergray8

    I'm not sure what you're issue is then :S Is your config file chmodded correctly?

    What I do know however is it seems that Flabaliki doesn't monitor this thread. :S :(
     
  20. Offline

    echibahn

    I'm pretty sure he messed up something in his plugin cause it clearly doesnt work and I clearly did everything correctly. Don't matter anymore I trashed it and i'm using something better.
     
  21. Offline

    Phase

    This is the exact error message I'm getting on the website, it is not modified in any way:
    In server logs:
    Bukkit Version: 1060
    Plugin Version: 1.0.1
    PHP Version: 5.3.2

    Website config.txt:
    Code:
    ------------------------------------------
    Server Configuration
    ------------------------------------------
    
    #Text name of the server
    ServerName=Edited Server Name
    
    #Enter the IP / hostname of your server.
    ServerIP=edited.out.address.but.its.valid
    
    #Displays the server IP to visitors (true / false)
    DisplayIP=true
    
    #Enter the password to connect with your Minecraft server
    #Default is admin.
    Password=edited
    
    ------------------------------------------
    Document Configuration
    ------------------------------------------
    
    #The rate at which the player list updates (in milliseconds)
    #1 Second = 1000 Milliseconds (Default is 10000)
    RefreshRate=10000
    
    #Display Version Number
    VersionDisplay=False
    
    #Display 'Powered by' line
    PoweredBy=False
    
    #Enable Automatic updates
    Updates=True
    
    ------------------------------------------
    CSS Configuration
    ------------------------------------------
    
    #Display ONLY the users, no user count or server online / offline info.
    #Options are: True, False
    SimpleList=false
    
    Page Body Options
    -------------------------
    
    #Background color of the page, if left blank it
    #will be white.
    Background=#f1eade
    
    #Color of the font to be used.
    FontColor=#7a7a7a
    
    #Member color will be used if you have permissions enabled and use the
    #node - onlineplayers.member
    MemberColor=#747811
    
    #Color to display Ops as.
    OpColor=#489f31
    
    #Size of the font.
    FontSize=13
    
    #Height of the text lines.
    LineHeight=1.4
    
    List Display Options
    -------------------------
    
    #Alignment of the table contents.
    Alignment=center
    
    #Bounding box, True to enable, False to disable
    #ALL Subsequent options are dependant on this setting!
    BoundingBox=false
    -------------------------
    
    #Background color of the player list box.
    BoxBackground=#c3b49b;
    
    #Color of the player list border.
    BoxBorder=#ffffff
    
    #Either True or False, display with rounded corners.
    RoundedCorners=True
    
    #Dependant of RoundedCorners option
    BorderRadius=25
    
    #Create a drop shadow of the list box. True or False.
    BoxShadow=True
    
    #Size of the shadow, dependant on BoxShadow being 'True'
    ShadowSize=15
    
    Plugin config.txt:
    Code:
    #Enter the url of the players.php file, including http://
    URL=http://domain.tld/status/survival/players.php
    
    #Enter the password for the scripts to connect. You must add
    #this into the other configuration file. Default is admin.
    Password=edited
    
    #Enable automatic updates, (true / false).
    AutoUpdate=true
    
    I have of course edited out the real domain and passwords, but the real values are correct and valid. I've tried complex passwords and very simple passwords as well, with no luck.

    Here's the permissions, I've tried your recommended permissions (0666 0646) and 0777:
    Code:
    drwxrwxr-x 3 <snip> <snip> 4.0K Aug 21 16:43 .
    drwxrwxr-x 4 <snip> <snip> 4.0K Aug 21 16:35 ..
    -rw-rw-r-- 1 <snip> <snip> 2.2K Aug 21 17:07 config.txt
    drwxrwxr-x 2 <snip> <snip> 4.0K Aug 21 16:43 images
    -rwxrwxrwx 1 <snip> <snip> 2.6K Aug 21 16:43 index.php
    -rwxrwxrwx 1 <snip> <snip>    8 Aug 21 16:43 onlinePlayers.txt
    -rw-rw-r-- 1 <snip> <snip> 1.3K Aug 21 16:43 phpUpdate.js
    -rwxrwxrwx 1 <snip> <snip> 8.2K Aug 21 16:43 players.php
    
     
  22. Offline

    petergray8

    Can you point your browser to http://domain.tld/status/survival/players.php or onlinePlayers.txt and get a result?
     
  23. Offline

    Phase

    Just like before, completely unedited:

    players.php:
    Code:
    The server does not appear to have connected. Are you sure you entered the right URL in the plugin's configuration? The url must be:
    http://_/status/survival/players.php
    [ajax]a1[/ajax]
    
    onlinePlayers.txt:
    Code:
    20 25565
    
     
  24. Offline

    Flabaliki

    Everyone who has been having errors, I'm really sorry :S.
    I've been really busy lately with school work picking up. Last two weeks of the school year = lots of work.
    I'll take a look at this as soon as I can, promise.
     
    petergray8 likes this.
  25. Offline

    petergray8

    Your school year must be opposite to mine. I start school in 2 weeks xD

    Its okay man take your time, schools more important than anything. Just don't forget about us little people ;)
     
  26. Offline

    LVM

    I'm loving this plugin, but I do have one request;

    Could you add a few more classes for permissions? Some servers have like mods, admins, vips, etc and would like to have different colors for each. This would make it even better! Thanks for the great work.
     
  27. Offline

    Ethneldryt

    Hello, Internet Explorer not work for me :(
     
  28. Offline

    Flabaliki

    @Ethneldryt That's odd, I'll take a look at that.
    @LVM The recent update to change the config format is actually for what you've just said. I changed it now, to give people time to update the plugin, so that I can easily add new options in the future without people manually having to do it themselves. Configurable groups, colours, all that will be coming.
     
  29. Offline

    7H3_N4P573R

    Hey,

    Just Wondering if This Would Work With 2 Different Servers

    (im thinking 2 different folders on the website, with two different configs, then use iframes on a main page to link them???)

    EDIT:

    Would it also be possible to use onlineplayers.admin and add some stuff to the config for admin colour aswell???

    (planning to do this for Builder, Mod and Admin, as well as default which is OP)
     
  30. Offline

    Flabaliki

    @7H3_N4P573R Yes, that would work. Just make sure you have two web folders, one for each server, then just create a page with iframes.
     

Share This Page