Simple Player List
Main | Installation | Configuration
Description
Simple Player List is the successor to OnlinePlayers. It is a plugin which collects the currently active members on your server and sends the information to a webpage that can be viewed by the public.
It displays whether or not the server is online, the users who are currently online (if any) and the number of users online out of the total that can be online.
There are two configuration files. One for the Bukkit plugin, so that it can connect to the PHP script. The other is to configure the functionality of the actual list display.
Permissions support (which is entirely optional), to enable the creation of custom ranks. You can create as many ranks as you want, and call them whatever you like. The purpose is to add a little tag, or prefix before the user's name in the player list.
Features
- Automatically updating active player list, viewable as a webpage.
- Permissions support for custom ranks. (Optional)
- Easy to configure with simple and explained config files.
- Status of the server is displayed as offline or online.
- Run on ANY Server. The server can send the list to any website or computer that has the correct php files. This means if the physical Minecraft server is off, the scripts can still run and display that the server is offline.
- Compact display. No confusing extra crap around the page to distract from the real purpose of the list.
- The ability to display a users skin face next to their name.
- The format of the list can be altered and parts removed to get exactly what you want.
- Give your users ranks with the config.yml file and simple permission nodes.
- Simple Prefix (link) integration. If you are running Simple Prefix, users prefixes will be used as ranks.
Preview
To Do's
- Order the players in the list by their ranks.
07.04 15:10:50 [Server] SEVERE at net.minecraft.server.ThreadLoginVerifier.run(ThreadLoginVerifier.java:34)
07.04 15:10:50 [Server] SEVERE at java.net.URL.openStream(Unknown Source)
07.04 15:10:50 [Server] SEVERE at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
07.04 15:10:50 [Server] SEVERE java.io.IOException Server returned HTTP response code: 504 for URL: http://session.minecraft.net/game/checkserver.jsp?user=A_FLY_NAMED_BOB&serverId=-2f643839f1d7a108
07.04 15:10:50 [Server] INFO Disconnecting A_FLY_NAMED_BOB [/68.110.65.194:53849]: Failed to verify username! [internal error java.io.IOException Server returned HTTP response code: 504 for URL: http://session.minecraft.net/game/checkserver.jsp?user=A_FLY_NAMED_BOB&serverId=-2f643839f1d7a108]
I fixed the problem from switching away from nginx on windows, how would I go about modifying the table width?
@metalguitarist
You can find javascripts on the internet that will resize iFrames to content height. It does autorefresh in iFrames, unless you are talking about IE specific. IE is so dumb.
@Flabaliki
Speakin of giant turds.... iFrames don't expand down when the content gets bigger, you either have to have to use scroll-bars or put the content height to it's maximum point which looks like a turd and wastes space... In my opinion they both look fugly... Also in internet explorer iFrames look really fugly because it shows a box around it........ AND not compact nor auto refreshing.............
@louiskw How would you want the names, faces, etc separated? Spaces, commas, what? In a comment just type how you want them for example; user1 user2 user3. Or if you want something different of course.
@Flabaliki
yes, just a plain text name, or an image(face), or status of the server
@spoothie Presumably you have followed the configuration instructions. Entered the same passcode in both config files? Or not? That would be an explanation as to why yours specifically is not working. Otherwise, it's odd that it doesn't always work for you and I don't really have an answer as to why.
@Flabaliki
Hm, strange. It seems that some are working for me and some others not. I simply put all the content of the "web" folder in a seperate folder in the directory of my webserver. Do I have to do anything else? I am using nginx, if that matters.
@louiskw What do you want it to return? Just a text output, list, etc? That's not hard to implement.
I don't know if this is already implemented (I couldn't find it), but if it isn't can you make a simple url request function to query who is online: mysite.com/players/request.php?who[3]
@metalguitarist
Use an iFrame.
Hello,
How can i embed this onto an existing web page?
Thanks!
@richboos
I knew it would fail if you have skins enabled and the skins fail. I just never sought to fix that issue. It either means they aren't being downloaded fast enough, or they aren't being resized and cropped fast enough. When pixel size have you set them at?
@Deadsign
I have the same issue
receiver.php displays nothing when skins are activated
@flabaliki is it intentional that if a skin fails, like it is for dead and I, that the rest of the information fails too? I would have thought that at least the player names would still show (I don't have the hover option on either)
@Deadsign Try it with completely unmodded, unchanged files, see what happens.
@klaymator14 That's really weird. I've never had PHP crash, from anything, let along Simple Player List. I'm afraid I have no idea. It may be using too much memory? As it uses a fair bit to download the skins. Maybe it's going over the limit. I mean, that should cause an error, not a crash, but I don't know :S
@spoothie I use Google Chrome, works 100% for me. Do other peoples lists work for you, or none of them work?
@Flabaliki It seems that the player list is not shown in Chromium or any of it's derivates (Google Chrome, Iron). AFAIK this problem is caused by the "onload" attribute. I am not sure if it happens to every version of any Chromium-like browser, but if it does, could you provide an alternative way that works with those browsers, too?
Whoops I meant to say it was causing PHP to crash, it was pretty late at night so yeah :P Not completely sure if it's your plugin, just that it started to happen around the time I started using it, any thoughts?
@Flabaliki
When i visit http://cg-gaming.nl/playerlist/receiver.php
Its done loading after a sec. And shows nothing. How do you suggest i visit receiver.php?
I find it so strange that it only doesnt work for me. I must have done something wrong. damnit :< Isnt there a way to make sure he downloads all the skin without a refresh stopping it. There is happening somuch on my server. Im sorry i am bothering you. I usually fix everything myself but im hitting a wall now :(
@waawaamp Can you send me the config.php file, so I can take a look.
@Deadsign They take a little while to download, if the page refreshes before they download, it cancels it. I suggest visiting the receiver.php the first time, and after they are downloaded, go back to the normal view.
@klaymator14 Are you 100% sure it's this plugin. This does not have anything to do with SQL at all, doesn't touch it.
This plugin seems to be crashing SQL on my server... any thoughts on how to prevent that?