[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

    iKeirNez

    My BukkitDev Profile
    My Plugins (9)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks very much for this plugin! Helped me alot!
     
  2. Offline

    TheOnlyLavaster

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
     
  3. Offline

    Flabaliki

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  4. Offline

    ChrisPhoenix

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hi !

    How do you install the script with a wordpress page?

    Thank you.
     
  5. Offline

    Jonchun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    ooh awesome plugin! I might use it :D
     
  6. Offline

    Flabaliki

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @ChrisPhoenix I suggest using one of the methods listed i under the Tips & Tricks spoiler. Probably using the iFrame method would be best.
     
  7. Offline

    ChrisPhoenix

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @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.
     
  8. Offline

    admzero

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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
  9. Offline

    Flabaliki

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @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?
     
  10. Offline

    admzero

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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 (Text):
    1.  
    2. 11:54:52 [INFO] SonicXP [/93.88.216.67:2583] logged in with entity id 144179 at
    3. ([utl-world] -43.5, 72.62000000476837, -136.5)
    4. 11:54:52 [SEVERE] Could not pass event PLAYER_JOIN to OnlinePlayers
    5. java.lang.NoSuchMethodError: org.bukkit.entity.Player.hasPermission(Ljava/lang/S
    6. tring;)Z
    7. at com.flabaliki.onlineplayers.onlineplayers.online(onlineplayers.java:1
    8. 41)
    9. at com.flabaliki.onlineplayers.onlineplayers$join.onPlayerJoin(onlinepla
    10. yers.java:101)
    11. at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    12. va:244)
    13. at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    14. a:58)
    15. at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    16. ava:321)
    17. at net.minecraft.server.ServerConfigurationManager.c(ServerConfiguration
    18. Manager.java:124)
    19. at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
    20. at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:74)
    21. at net.minecraft.server.Packet1Login.a(SourceFile:43)
    22. at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    23. at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
    24. at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    25. at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    26. at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    27. at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     

    Attached Files:

  11. Offline

    cjt3007

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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 (Text):
    1. 00:09:43 [SEVERE] Could not pass event PLAYER_JOIN to OnlinePlayers
    2. java.lang.NoSuchMethodError: org.bukkit.entity.Player.hasPermission(Ljava/lang/String;)Z
    3.     at com.flabaliki.onlineplayers.onlineplayers.online(onlineplayers.java:141)
    4.     at com.flabaliki.onlineplayers.onlineplayers$join.onPlayerJoin(onlineplayers.java:101)
    5.     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
    6.     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    7.     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    8.     at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:124)
    9.     at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
    10.     at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
    11.     at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    12.     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    13.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    14.     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     

    Attached Files:

  12. Offline

    petergray8

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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 (Text):
    1. - GET http://domain.com/build/onlineplayers/undefined 404 (Not Found)
    2. - Uncaught TypeError: Cannot read property '1' of null in phpUpdate.js:38
    Line 38 of phpUpdate.js
    Code (Text):
    1. 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 (Text):
    1.     MOD:
    2.         default: false
    3.         info:
    4.             prefix: '&1'
    5.             suffix: ''
    6.             build: true
    7.         inheritance:
    8.         permissions:
    9.             - 'motd.*'
    10.             - 'onlineplayers.member'
     
  13. Offline

    atlem

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    need some help if somewone have time ,,
    geting this error
    Code (Text):
    1. 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
    2.  
    3. 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
     
  14. Offline

    petergray8

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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 (Text):
    1. allow_url_fopen = Off
    and change OFF to ON
     
  15. Offline

    atlem

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    where is this option ?
     
  16. Offline

    petergray8

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

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

    echibahn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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 (Text):
    1. 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:
    2.  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 (Text):
    1. #Enter the url of the players.php file, including http://
    2. URL=http://mcraft.no-ip.info/players/players.php
    Console:
    Code (Text):
    1. 10:36:46 [INFO] [OnlinePlayers v1.0.1] Can not connect to web server.
    2. 10:36:46 [INFO] [OnlinePlayers v1.0.1] Failed to start.
    3. 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 (Text):
    1. 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.
     
  18. Offline

    petergray8

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
     
  19. Offline

    echibahn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
     
  20. Offline

    petergray8

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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 :(
     
  21. Offline

    echibahn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
     
  22. Offline

    Phase

    My BukkitDev Profile
    My Plugins (0)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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 (Text):
    1.  
    2. ------------------------------------------
    3. Server Configuration
    4. ------------------------------------------
    5.  
    6. #Text name of the server
    7. ServerName=Edited Server Name
    8.  
    9. #Enter the IP / hostname of your server.
    10. ServerIP=edited.out.address.but.its.valid
    11.  
    12. #Displays the server IP to visitors (true / false)
    13. DisplayIP=true
    14.  
    15. #Enter the password to connect with your Minecraft server
    16. #Default is admin.
    17. Password=edited
    18.  
    19. ------------------------------------------
    20. Document Configuration
    21. ------------------------------------------
    22.  
    23. #The rate at which the player list updates (in milliseconds)
    24. #1 Second = 1000 Milliseconds (Default is 10000)
    25. RefreshRate=10000
    26.  
    27. #Display Version Number
    28. VersionDisplay=False
    29.  
    30. #Display 'Powered by' line
    31. PoweredBy=False
    32.  
    33. #Enable Automatic updates
    34. Updates=True
    35.  
    36. ------------------------------------------
    37. CSS Configuration
    38. ------------------------------------------
    39.  
    40. #Display ONLY the users, no user count or server online / offline info.
    41. #Options are: True, False
    42. SimpleList=false
    43.  
    44. Page Body Options
    45. -------------------------
    46.  
    47. #Background color of the page, if left blank it
    48. #will be white.
    49. Background=#f1eade
    50.  
    51. #Color of the font to be used.
    52. FontColor=#7a7a7a
    53.  
    54. #Member color will be used if you have permissions enabled and use the
    55. #node - onlineplayers.member
    56. MemberColor=#747811
    57.  
    58. #Color to display Ops as.
    59. OpColor=#489f31
    60.  
    61. #Size of the font.
    62. FontSize=13
    63.  
    64. #Height of the text lines.
    65. LineHeight=1.4
    66.  
    67. List Display Options
    68. -------------------------
    69.  
    70. #Alignment of the table contents.
    71. Alignment=center
    72.  
    73. #Bounding box, True to enable, False to disable
    74. #ALL Subsequent options are dependant on this setting!
    75. BoundingBox=false
    76. -------------------------
    77.  
    78. #Background color of the player list box.
    79. BoxBackground=#c3b49b;
    80.  
    81. #Color of the player list border.
    82. BoxBorder=#ffffff
    83.  
    84. #Either True or False, display with rounded corners.
    85. RoundedCorners=True
    86.  
    87. #Dependant of RoundedCorners option
    88. BorderRadius=25
    89.  
    90. #Create a drop shadow of the list box. True or False.
    91. BoxShadow=True
    92.  
    93. #Size of the shadow, dependant on BoxShadow being 'True'
    94. ShadowSize=15
    95.  
    Plugin config.txt:
    Code (Text):
    1.  
    2. #Enter the url of the players.php file, including http://
    3. URL=http://domain.tld/status/survival/players.php
    4.  
    5. #Enter the password for the scripts to connect. You must add
    6. #this into the other configuration file. Default is admin.
    7. Password=edited
    8.  
    9. #Enable automatic updates, (true / false).
    10. AutoUpdate=true
    11.  
    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 (Text):
    1.  
    2. drwxrwxr-x 3 <snip> <snip> 4.0K Aug 21 16:43 .
    3. drwxrwxr-x 4 <snip> <snip> 4.0K Aug 21 16:35 ..
    4. -rw-rw-r-- 1 <snip> <snip> 2.2K Aug 21 17:07 config.txt
    5. drwxrwxr-x 2 <snip> <snip> 4.0K Aug 21 16:43 images
    6. -rwxrwxrwx 1 <snip> <snip> 2.6K Aug 21 16:43 index.php
    7. -rwxrwxrwx 1 <snip> <snip>    8 Aug 21 16:43 onlinePlayers.txt
    8. -rw-rw-r-- 1 <snip> <snip> 1.3K Aug 21 16:43 phpUpdate.js
    9. -rwxrwxrwx 1 <snip> <snip> 8.2K Aug 21 16:43 players.php
    10.  
     
  23. Offline

    petergray8

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Can you point your browser to http://domain.tld/status/survival/players.php or onlinePlayers.txt and get a result?
     
  24. Offline

    Phase

    My BukkitDev Profile
    My Plugins (0)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Just like before, completely unedited:

    players.php:
    Code (Text):
    1.  
    2. 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:
    3. http://_/status/survival/players.php
    4. [ajax]a1[/ajax]
    5.  
    onlinePlayers.txt:
    Code (Text):
    1.  
    2. 20 25565
    3.  
     
  25. Offline

    Flabaliki

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  26. Offline

    petergray8

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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 ;)
     
  27. Offline

    LVM

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
     
  28. Offline

    Ethneldryt

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hello, Internet Explorer not work for me :(
     
  29. Offline

    Flabaliki

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @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.
     
  30. Offline

    7H3_N4P573R

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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)
     

Share This Page