promotional bannermobile promotional banner

OnlineUsers

track online users in a flatfile or MySQL database

File Details

1.7.0

  • R
  • Apr 25, 2013
  • 16.94 KB
  • 2.6K
  • CB 1.6.2-R0.1+2

File Name

OnlineUsers.jar

Supported Versions

  • CB 1.6.2-R0.1
  • CB 1.5.2-R1.0
  • CB 1.4.7-R1.0
  • Major efficiency boost by running a separate async task thread to handle adding/removing players from the database or flatfile. Previously this was handled entirely in the player join and quit listeners, thus holding up the main server thread for however long it took.

From brief testing with a local MySQL database the time used by the two listeners decreased to almost 1/900th the time (from 45997950 nanoseconds average down to 51250 nanoseconds). Of course it still takes the same amount of time overall to add or remove players, but most of the time spent won't hold up the server any more.