promotional bannermobile promotional banner

OnlineUsers

track online users in a flatfile or MySQL database
Back to Files

1.7.0

File nameOnlineUsers.jar
Uploader
BrettflanBrettflan
Uploaded
Apr 25, 2013
Downloads
2.6K
Size
16.9 KB
File ID
697171
Type
R
Release
Supported game versions
  • CB 1.6.2-R0.1
  • CB 1.5.2-R1.0
  • CB 1.4.7-R1.0

What's new

  • 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.

This mod has no additional files