Actual version is v1.6 intended for newest Craftbukkit versions.
Basic information
This plugin sends data to custom .PHP file on your website using GET headers. The data is information about current server status, e.g. Online/Offline, number of online players etc.
On the first start of server with this plugin the plugin creates folder ServerStatus and the configuration file. Then you have set data in config and restart the server.
In configuration file config.yml you can set useSecurityKey (true or false), your security key and full path (adress) to the .PHP file.
Security key can be any expession you want, you will need to set it only in this config.yml file and then in .PHP file. Key will be sent by plugin in GET header, and the .PHP file will check if it is equal.
Then you can set connection timeout. It means how long time give you to plugin to connect to .PHP file. (in milliseconds)
(set -1 for default timeout)
And there is a ignore list. Players in ignore list will be ignored from counting and listing players (plugin won't send them to .PHP file).
Finally you can set refresh-rate to some number of seconds. It means that the plugin will send newest information every x seconds. (set -1 for disabling periodic call)
In this .PHP file is only easy script to read data from GET headers and to write it into .TXT file. You have to set the security key and if you are good .PHP programmer, you would be able to rewrite the code to whatever you want (e.g. write data to .HTML files, to MySQL database,...).
You can choose, if you want to have banner.png or some TXT file with server status.
Banner will look like this:
List of GET headers
sec - The security key
status - Status of the server, can be Online or Offline
name - Name of the server, loaded from server-properties file
motd - Server's message of the day from server-properties file
ip - IP adress of the server, loaded from server-properties file
port - Port of server behind the IP adress, loaded from server-properties file
plsnum - Number of online players
maxnum - Maximum number of players, loaded from server-properties file
players - List of online players
log - Reason why was the URL called (It can be "Starting up Minecraft server", "Stopping Minecraft server", "Player (name) has joined the game", "Player (name) has left the game")
plversion - Contains version number of this plugin
bkversion - Contains version number of used Bukkit version
server.properties
Don't forget to set correct information (server-ip, server-port, server-name, max-players) in server's file server.properties!
Commands & Permissions
serverstatus.reload - Allows you to use /serverstatus command, which reloads the config
serverstatus.ignore - Player with this permission will be ignored from counting and listing players
Changelog
v1.6
Added option to set refresh-rate to -1 for disabling periodic call or set it to any time in seconds
Added option to set connection-timeout to -1 for default timeout or set it to any time in milliseconds
(and no kidding, now is the java.lang.NullPointerException error really fixed! :))
in 1.5.1 it is saying that it is still online when it is not, and it will not list the number of players online, it's doing this in both banner format and in the file format
16:44:31 [SEVERE] Could not pass event PlayerQuitEvent to ServerStatus v1.5.2
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.v1_5_R2.PlayerList.disconnect(PlayerList.java:254)
at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java:692)
at net.minecraft.server.v1_5_R2.NetworkManager.b(NetworkManager.java:297)
at net.minecraft.server.v1_5_R2.PlayerConnection.d(PlayerConnection.java:110)
at net.minecraft.server.v1_5_R2.ServerConnection.b(SourceFile:35)
at net.minecraft.server.v1_5_R2.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:578)
at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225)
at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:474)
at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:407)
at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
Caused by: java.lang.NullPointerException
at me.PerwinCZ.ServerStatus.Events.onPlayerQuit(Events.java:18)
at sun.reflect.GeneratedMethodAccessor428.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 14 more
Can anyone help me? I'm having trouble getting this to work. Is anyone willing to do a "Server Status setup for dummies?" I have the website set up but I can't seem to get it to show the banner...
would it be possible to get the list of plugins and plugins' versions? i think once u get that, this will be one of, if not, the best plugin for what it does.
I have similar problems as below. I am on Version 1.5.1 and on Bukkit 1.4.7:
[SEVERE] Could not pass event PlayerQuitEvent to ServerStatus v1.5.1
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.v1_4_R1.PlayerList.disconnect(PlayerList.java:209)
at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:717)
at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:295)
at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:113)
at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39)
at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598)
at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494)
at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.NullPointerException
at me.PerwinCZ.ServerStatus.Events.onPlayerQuit(Events.java:17)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 14 more
Still haven't got this working and unfortunately there's not much support so for anyone else trying to do something similar, Im not using 'Stats' by Lolmewn which has mySQL support too.
@zaklaus
There is some problem with connecting from server to the PHP file, so it isn't error of my plugin, I can't tell you more.
@BenRush
You can use this prepared PHP file: http://dev.bukkit.org/server-mods/serverstatus/pages/php-file/
in 1.5.1 it is saying that it is still online when it is not, and it will not list the number of players online, it's doing this in both banner format and in the file format
hi, I have this problem
I have php file on my remote web. Ive set callurl. Whats wrong with this?
SK. Naozaj neviem ako to fixnúť. Skúšal som nastaviť aj práva.
any tutorials how to make get headers? :/
@w3thax
Fixed in v1.5.3.
Getting these errors on 1.4.7 Spigot with ServerStatus 1.5.2:
On logout:
and this on login:
Any ideas?
Error occurs in bukkit 1.5.1
16:44:31 [SEVERE] Could not pass event PlayerQuitEvent to ServerStatus v1.5.2 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.v1_5_R2.PlayerList.disconnect(PlayerList.java:254) at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java:692) at net.minecraft.server.v1_5_R2.NetworkManager.b(NetworkManager.java:297) at net.minecraft.server.v1_5_R2.PlayerConnection.d(PlayerConnection.java:110) at net.minecraft.server.v1_5_R2.ServerConnection.b(SourceFile:35) at net.minecraft.server.v1_5_R2.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:578) at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225) at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:474) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:407) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.NullPointerException at me.PerwinCZ.ServerStatus.Events.onPlayerQuit(Events.java:18) at sun.reflect.GeneratedMethodAccessor428.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 14 more
Would love to see a WordPress plugin made for this!
Can anyone help me? I'm having trouble getting this to work. Is anyone willing to do a "Server Status setup for dummies?" I have the website set up but I can't seem to get it to show the banner...
would it be possible to get the list of plugins and plugins' versions? i think once u get that, this will be one of, if not, the best plugin for what it does.
Plugin abandoned ?
Oh wait nevermind i got it sorry
Noob here where do i put phpfile? or do u upload it to website?
I have similar problems as below. I am on Version 1.5.1 and on Bukkit 1.4.7:
[SEVERE] Could not pass event PlayerQuitEvent to ServerStatus v1.5.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.v1_4_R1.PlayerList.disconnect(PlayerList.java:209) at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:717) at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:295) at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:113) at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39) at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598) at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.NullPointerException at me.PerwinCZ.ServerStatus.Events.onPlayerQuit(Events.java:17) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 14 more
Still haven't got this working and unfortunately there's not much support so for anyone else trying to do something similar, Im not using 'Stats' by Lolmewn which has mySQL support too.
Stats:
http://dev.bukkit.org/server-mods/lolmewnstats/
Any chance the creater could provide a fix for that issue? Would really like to get this plugin working
@VOWFallen
Yeah I am running that version of CB,
@VOWFallen
I have the same problem, and a few others.. It is a very nice little helpfull plugin, but it needs a little look-through and some bugfixing.
@smnanthny
I'm sorry, I meant are you using 1.4.7 CB?
@VOWFallen
Nope I'm using v1.5.1 :) Which is why I was confused about the 'up to date' message