Discussion in 'Inactive/Unsupported Plugins' started by Flabaliki, Jul 7, 2011.
Thanks very much for this plugin! Helped me alot!
Hey, this is random, but aren't you from Mod The Sims? I recognized your name.
Anyway, thank you for this. It will help tons.
@TheOnlyLavaster Yes, I am
How do you install the script with a wordpress page?
ooh awesome plugin! I might use it
@ChrisPhoenix I suggest using one of the methods listed i under the Tips & Tricks spoiler. Probably using the iFrame method would be best.
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.
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.
@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?
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:
11:54:52 [INFO] SonicXP [/220.127.116.11: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
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.
00:09:43 [SEVERE] Could not pass event PLAYER_JOIN to OnlinePlayers
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:
- 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
document.getElementById(destination).innerHTML = txt;
It appears that "destination" is null, and it can't read the first array value of it due to this.
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:
need some help if somewone have time ,,
geting this error
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
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
allow_url_fopen = Off
and change OFF to ON
where is this option ?
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.
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:
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:
#Enter the url of the players.php file, including http://
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.
Update: I just noticed my console pops up this message when someone logs in:
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.
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.
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.
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
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.
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
#Text name of the server
ServerName=Edited Server Name
#Enter the IP / hostname of your server.
#Displays the server IP to visitors (true / false)
#Enter the password to connect with your Minecraft server
#Default is admin.
#The rate at which the player list updates (in milliseconds)
#1 Second = 1000 Milliseconds (Default is 10000)
#Display Version Number
#Display 'Powered by' line
#Enable Automatic updates
#Display ONLY the users, no user count or server online / offline info.
#Options are: True, False
Page Body Options
#Background color of the page, if left blank it
#will be white.
#Color of the font to be used.
#Member color will be used if you have permissions enabled and use the
#node - onlineplayers.member
#Color to display Ops as.
#Size of the font.
#Height of the text lines.
List Display Options
#Alignment of the table contents.
#Bounding box, True to enable, False to disable
#ALL Subsequent options are dependant on this setting!
#Background color of the player list box.
#Color of the player list border.
#Either True or False, display with rounded corners.
#Dependant of RoundedCorners option
#Create a drop shadow of the list box. True or False.
#Size of the shadow, dependant on BoxShadow being 'True'
#Enter the url of the players.php file, including http://
#Enter the password for the scripts to connect. You must add
#this into the other configuration file. Default is admin.
#Enable automatic updates, (true / false).
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:
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
Can you point your browser to http://domain.tld/status/survival/players.php or onlinePlayers.txt and get a result?
Just like before, completely unedited:
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:
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.
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
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.
Hello, Internet Explorer not work for me
@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.
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???)
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)
Separate names with a comma.