Mineuniverse
Log in Register
Plugins

OnlinePlayersSQL

Keep track of online users for your website
by RayHerring
Download Claim this project
16,202 downloads
0 likes
Updated Jun 30, 2026
0 hypes
Admin Tools Informational

Description

This plugin will update a MySQL database table with a list of players as the join and disconnect from your game.

Originally created for the MCAddictGallery server, it was created so that we could have a live player listing on our website with minimal of fuss.

Currently the plugin tracks the following information:

  • Player Name
  • Previous World (used for when a player warps from one world to another)
  • Current World (the current world the player is in)
  • IP Address
  • Logon Time (stored as seconds since epoch)
  • Players permission group
  • Flag to say whether the player is online or not.

Required Plugins to use this one

  • Vault

Optional Plugins that provide extra features

  • SimplyVanish - Not required, but if you want the players list to not show vanished players, then you will likely want this.

Configuration

config.yml

MySQLServer: localhost
MySQLPort: '3306'
MySQLUsername: <username for db>
MySQLPassword: <password for db>
MySQLDatabase: <database to use>
MySQLTable: <table to use>
showDebug: true|false
op_only_resync: true|false

eg.

MySQLServer: localhost
MySQLPort: '3306'
MySQLUsername: player_tracker
MySQLPassword: fred123
MySQLDatabase: player_tracker
MySQLTable: online_players
showDebug: false
op_only_resync: false

This plugin will check to see if the necessary table exists in 'MySQLDatabase' and if it doesn't, it will create it.

showDebug will put debug information in the console allowing you to follow along what the plugin does when a player connects/disconnects.

op_only_resync determins if only ops can use '/onl resync' or not.

An example php file can be found here: http://dev.bukkit.org/server-mods/online-players-sql/pages/example-php-file/

It should work just fine, though you will need to change values where necessary for your mysql logon information.

Information about each function used can naturally be found at the php.net website.

OnlinePlayersSQL-v1.9.6
MC CB 1.7.2-R0.2
Release 2014-06-14 Get
OnlinePlayersSQL-v1.9.5
MC CB 1.7.2-R0.2
Release 2014-05-19 Get
OnlinePlayersSQL-v1.9.4
MC CB 1.7.2-R0.2
Release 2014-04-05 Get
OnlinePlayersSQL-v1.9.2
MC CB 1.7.2-R0.2
Beta 2014-02-08 Get
OnlinePlayersSQL-v1.9.3
MC CB 1.7.2-R0.2
Beta 2014-02-08 Get
OnlinePlayersSQL-v1.9.0
MC CB 1.7.2-R0.2
Beta 2014-02-07 Get
OnlinePlayersSQL-v1.9.1
MC CB 1.7.2-R0.2
Beta 2014-02-07 Get
OnlinePlayersSQL v1.8.0
MC CB 1.4.6-R0.3
Release 2013-03-31 Get
OnlinePlayersSQL v1.7.0
MC CB 1.4.6-R0.3
Release 2013-02-12 Get
OnlinePlayersSQL-v1.6.2
MC CB 1.4.6-R0.3
Beta 2013-01-25 Get
OnlinePlayersSQL-v1.6.1
MC CB 1.4.6-R0.3
Beta 2013-01-20 Get
OnlinePlayersSQL-v1.6
MC CB 1.4.6-R0.3
Beta 2013-01-14 Get
OnlinePlayersSQL v1.5
MC CB 1.4.5-R0.2
Beta 2012-12-05 Get
OnlinePlayersSQL-v1.4
MC CB 1.3.1-R1.0
Beta 2012-09-25 Get
OnlinePlayersSQL-v1.3
MC CB 1.3.1-R1.0
Release 2012-09-19 Get
OnlinePlayersSQL-v1.2
MC CB 1.3.1-R1.0
Release 2012-08-25 Get
OnlinePlayersSQL-v1.1
MC CB 1.2.5-R4.0
Release 2012-07-29 Get
OnlinePlayersSQL-v1.0
MC CB 1.2.5-R4.0
Release 2012-07-07 Get
OnlinePlayersSQL-v0.9
MC CB 1.2.5-R4.0
Beta 2012-06-18 Get
OnlinePlayersSQL v0.8beta3
MC CB 1.2.3-R0.2
Beta 2012-04-12 Get
OnlinePlayersSQL v0.8beta2
MC CB 1.2.3-R0.2
Beta 2012-04-11 Get
OnlinePlayersSQL v0.8beta1
MC CB 1.2.5-R1.0
Beta 2012-04-09 Get
OnlinePlayersSQL v0.6
MC CB 1.2.3-R0.2
Release 2012-03-25 Get
OnlinePlayersSQL v0.7
MC CB 1.2.3-R0.2
Release 2012-03-25 Get
OnlinePlayersSQL v0.5
MC CB 1.2.3-R0.2
Release 2012-03-21 Get

More from RayHerring

WorldTimeTracker
989
SlimeChunkDisabler
6,412
Slime Chunk Detector
11,021
ChatKKiller
1,082

You Might Also Like

Craftipedia
Craftipedia - View crafting recipes in-game!
97,126
Dynmap-AdminCmd
Show homes/warps from AdminCmd on Dynmap maps
9,912
ClockSign
Create signs that show the time of your world(s), or real-life timezones
9,789
PingNachricht
A easy to use PlayerCounter edit-plugin
9,687
VillageInfo
Displays info about current village
9,596
Askyblock-holostats
Display the top10 players from Askyblock plugin as a hologram
9,538