Plan - Player Analytics, Sponge/Bukkit/Bungee support


#1

This is a discussion topic for the Ore project, Plan. View the full project on Ore for downloads and more information.


Info

Player Analytics is the ultimate server staff tool to monitor how players are playing your server.
It includes a Web View for Player Activity Graphs, Information, Lists and much more!

The plugin gathers data to a local database (SQLite/MySQL) via Listeners.
This data is then analyzed on the spot and displayed via the WebServer.

Please report any issues here

This is a port of Spigot version of the plugin. All of the Bukkit documentation on Github is valid for this version.

This version is for Sponge servers - If you want to install this plugin on Bungee or Spigot servers as well, get the proper version on Spigot

Links

External Connections

WebServer (Disabled by default):The plugin hosts a WebServer on configurable port (default 8804)
The WebServer can and should be secured with a login by installing HTTPS Certificate on the plugin.

Geolocations (Disabled by default): The plugin is capable of downloading MaxMinds GeoIP Database - This can be enabled in the config under Data.Geolocations

Version Check: The plugin will check for new version via Spiget and from Github on enable.

Features

Installation

You can follow Bukkit Set-Up guide to install Plan on Sponge.

WebServer is disabled by default, enable it with WebServer.DisableWebServer: false
Geolocation is disabled by default, enable it with Data.Geolocations: true




Looking for a server wrapper
#2

A new version has been released for Plan, it is available for download here.


Player Analytics by Rsl1122
Change log 4.2.1 (Sponge Release)

Bugfixes:

  • MySQL now available!
  • Fixed /plan reload command
  • Fixed other small things
    • Fixed Database open fail logging causing an exception that prevented seeing the actual error.
    • Fixed locale files not being shaded in the jar
    • Replaced deprecated StrSubstitutor with StringSubstitutor

#3

neato! I’ve been looking for something like this for ages. Thanks for giving sponge some love <3


#4

Awesome ! I might take inspiration from your html code :slight_smile:


#5

A new version has been released for Plan, it is available for download here.


Change log 4.3.0

IPs in the database will be anonymised!
Some Plan logs and inacative users may be deleted by the update.

  • Per day logs Error logs are now per day logs. Added a setting for automatic log removal after x days. (7 by default)

  • Clean inactive players Added an option to remove player’s data after they’ve been inactive for x days. (180 by default)

  • Database schema change: IPs now anonymised (last 16 bits) and hashed to keep same IPs from clogging up the db.


This update contains features that improve GDPR compliance.

In order to make your life easier, I decided to write down the data Plan gathers. This is just for disclosure to your users and is optional.


If you get any errors or have issues don’t be afraid to join the Support on Discord or report the issue (This one is easier for me). Cheers!


#6

bug that removed all data was present so update was removed


#7

A new version has been released for Plan, it is available for download here.


Fixed a critical bug that caused active players to be cleaned from the database


#8

A new version has been released for Plan, it is available for download here.


Change log 4.3.2

Improvements

  • Player retention calculation now takes into account when the player registered (Improves both month and week calculation for newer players)
  • Player retention prediction now compares new players to average values of all previous players, and determines stickiness from distance between averages of those that stuck around and those who didn’t. (Old compared values to other new players, checking if they’re like 50% of those players that were retained.)
  • Improved the performance impact on MySQL CPU of Bungee geolocation fetch
  • DeathListener now supports wider range of projectiles
  • Security: ConnectionSystem now uses TLSv1.2 instead of SSL
  • Removed “Removed data of x players” log when x = 0

Bugfixes:

  • Fixed IP table inserting rows every time a player joined
  • Fixed anonymisation of old IPs in IP table
  • Removed produced duplicates from IP table
  • Attempted to fix closed datasource issue on Sponge
  • Fixed Geolocation gathering on Sponge
  • Fixed Processing exceptions not being logged
  • Fixed afk time formatting on server accordion on Player page
  • Fixed wrong link to /players page on /network**/**-page
  • Fixed backup failing if the database contained duplicate sessions caused by old bugs
  • New backup db is now closed properly
  • Improved performance of server specific UUID fetch
  • Fixed /players page not sorting by last seen by default
  • Removed use of Bukkit ChatColor in Analyze and Inspect command (Fixes sponge)

If you get any errors or have issues don’t be afraid to join the Support on Discord or report the issue (This one is easier for me). Cheers!


#9

That’s some great features ! I can’t wait to try it :smiley:


#10

A new version has been released for Plan, it is available for download here.


Data Refactoring Update - Change log 4.4.0

Long time no see! Here is quite massive update to the data object structure of Plan!
In addition to the new structure there are great new features & bugfixes.

Key Features:

Ping Gathering (Bukkit):

Plan now gathers player’s ping on Bukkit based servers. Best, Worst and Average ping is displayed in a graph on Performance tab, as well as on the player’s page. Ping data is stored for 2 weeks.

Ping per Country:

Ping / Country is now displayed on the Geolocations tab in a table.

Unique & New Players Graph:

This graph has been haunting the Online Activity tab for a while, and now it has been implemented. The same data is also visible on the Calendar.

Network Health Info:

Player activity based measures are now available on the network page.
Playerbase Activity Charts are also present

PvP & PvE tab:

Player page now contains a fancy PvP & PvE tab that displays all player kills and deaths as well as Player & Mob KDRs

Country bar chart on Geolocations tabs:

Since hovering over every country can be tedious, now you can see top 20 countries next to the map.

CPU Usage Change:

Old CPU usage method was not actually displaying the CPU usage. New method is now in use that displays the system CPU usage accurately.

Nicknames table Last Seen:

Actions table on Player page has been removed. It’s data has been placed into nickname table.

Font Awesome 5 Icons:

Font awesome has been updated (Thanks @Argetan for the contribution)

New Features:

  • AFK tracking can be ignored with plan.ignore.afk permission
  • PlanBungee can be disabled with /planbungee disable
  • /afk commands are now tracked by AFK Tracker

Improvements:

  • IPv6 addresses now anonymized properly
  • Fixed IP address order in Connection Info table on Player page
  • Activity Index added to /players page
  • Player#isBanned no longer run on server thread
  • Players tables now ordered properly
  • Player page generation is now run on BungeeCord if available.
  • Player Overview tab gets Operator, Ban & Register info added to each server
  • Analysis progress no longer logged on console

Plugin data fixes (Bukkit):

  • Updated AdvancedAchievements hook (Thanks @DarkPyves)
  • McMMO now displays level data on the server page as well.
  • Fixed a Towny bug when Towny didn’t know a player.
  • Multiple fixes to Litebans tables (Table headers, player names, page overflow, ban tag when not banned)
  • Fixed Jobs table header order
  • Changed almost all Kingdoms icons to better fit
  • Fixed Unique Constraint violation related to ProtocolSupport/ViaVersion

Bugfixes:

  • Fixed some exceptions related to Analysis as a side effect from the refactoring

Other

This was a very large revamp for the data objects in Plan and very important one. The new system allows a lot more flexible expansion and analysis of the existing data.

In addition to this, the Sponge & Bungee set up tutorials have been updated & The plugin has a new fancy icon!


If you get any errors or have issues don’t be afraid to join the Support on Discord or report the issue (This one is easier for me). Cheers!


#11

A new version has been released for Plan, it is available for download here.


Bugfixes:

  • Fixed Plan randomly running stuff on the main server thread
  • (Bukkit) Fixed Litebans related server page breakage
  • (Bukkit) Fixed Towny tab not showing any towns
  • (Bukkit) Fixed Town Block calculation

#12

Awesome plugin! I did not know that he was on a sponge!


#13

A new version has been released for Plan, it is available for download here.


Bug fixes and Optimizations - Change log 4.4.2

Hello, In this bug fix update the Locale system gets some love and many bugs are fixed. Hopefully the Major bugs are fixed, since they are extremely difficult to reproduce.

paypal Support the Developer

Improvements:

  • Locale System improved, easier to add new messages - Web pages are now translatable through the Locale, so no html changes are necessary.
    • If you have an old locale rename ‘Cmd Usage -’ to ‘Cmd Help -’
    • German locale by Morsmorse
    • Partial Simplified Chinese locale by 佛壁灯 (f0rb1d)
    • Finnish locale by me
  • HikariCP Replaced DHCP2 with HikariCP as connection pool (Bukkit, Bungee), should improve fetch speeds
    • Connections now validated before use to reduce exceptions
  • Database Patching Now patches are applied if they are not already applied, this means if you skip multiple versions in the future, all database patches are applied. Failed applications are also re-applied with this version (Looking at you IP anonymization)
  • Connection System Replaced bare java HttpUrlConnection with Apache HttpClient that has more reliable API in terms of closing resources (No more thread leakage)
  • Font awesome update 5.0.1.3 -> 5.2.0, Thanks to [USER=422592]@Argetan[/USER]
  • Caching layer for page generation 10 second caching layer to reduce repeated page generation database calls on Bungee
  • ‘/’ now redirects to ‘/server’ when using HTTP
  • Litebans tables now display UUID instead of “Unknown to Plan”, also added time issued.

Bug fixes:

  • Major Attempt to fix Stall bug in 4.4.1 caused by Thread starvation (See connection system improvement)
  • Major Attempt to fix Network page hang bug caused by failing database connection pool, occurring more frequently when using External MySQL
  • Major Attempt to fix “Unsupported key” exceptions, possibly caused by improper serialization by JVM
  • Fixed Player online status not updating on Bungee properly
  • Fixed DeathEvent Exception on 1.8.X (Bukkit) when pet kills something
  • Fixed UTF-8 Encoding issue (Umlauts and russian lang now work on website)
  • Fixed Plan on CraftBukkit (Disabled Ping task on CraftBukkit)
  • Fixed Health Index calculation
    • Fixed player retain percentage rounding
    • Fixed server downtime calculation giving values over 30 days
  • Fixed ConcurrentModificationException related to GeoInfoMutator
  • Fixed Sponge PluginData registration
  • Fixed some Litebans PluginData exceptions
  • Fixed CacheInspectPageRequest debug logging an exception on bungee

If any of the major bugs resurface, please Open an issue as soon as possible with as much information as possible, Thanks!


If you get any errors or have issues don’t be afraid to join the Support on Discord or report the issue (This one is easier for me). Cheers!


#14

A new version has been released for Plan, it is available for download here.


Change log 4.4.3

New

  • Added JSON Export to /player/name/raw and /server/name/raw - Get raw link with /plan m raw <player> or /planbungee raw <player>

Improvements

  • Simplified Chinese Language finished by f0rb1d
  • Partial RedisBungee support (Supports online player counts)
  • Added bStats to Bungee and Sponge
  • Improved /debug page with tabs, and added Cache information

Bugfixes

  • [Major] Fixed thread and socket leakage with proper timeouts
  • Fixed false negative on /plan m setup
  • Fixed inspect page head not displaying sometimes
  • Fixed nickname data truncation
  • Fixed NPE on disable if plugin failed to enable
  • Fixed Nickname LastSeen Patch Application

#15

A new version has been released for Plan, it is available for download here.


Change log 4.4.4

New

  • /plan m uninstalled [id/name] command to mark servers as uninstalled
    • Marking a server uninstalled stops BungeeCord from attempting to connect to it
    • Re-installed servers will be connected to automatically
  • Two config options for ping gathering delays, server start delay and login delay
  • AdvancedBan support by Vankka

Improvements

  • Removed DataContainerCache as it was causing large memory usage on networks
  • HikariCP updated to 3.2.0
  • Connection: close added to outbound HTTP connections
  • Reduced player page generation delay from 20s to 5s on login and logout
  • Caches now cleared on disable
  • Network page updated less frequently (Now when you view the page & periodically)
  • Attempt to clean ping data with a filter 0 < ping <= 4000ms
  • Improved ping gathering by changing average to mean
  • AFK ignore permission checked less frequently

Bugfixes

  • Fixed Sponge metrics
  • Fixed ConcurrentModificationException related to SessionsMutator
  • Fixed player online status on server switch on networks
  • Fixed longest world time calculation on session accordion
  • Fixed active sessions not displaying on server page
  • Fixed relative links in server.html for FullCalendar.js (Only bug when using a subdirectory rewrite rule on redirection)
  • Fixed Exception when disabling the plugin on server shutdown

#16

A new version has been released for Plan, it is available for download here.


Change log 4.4.5

This update addresses plugin incompatibility issues due to improper shading by splitting Plan into two artifacts. This means that one version will not function on all platforms - Sponge will require a different artifact.

All artifacts are available at https://github.com/Rsl1122/Plan-PlayerAnalytics/releases/ - Use this version on Sponge

New

  • BungeeCord PluginData support: AdvancedBan, BuyCraft, Litebans, ViaVersion
  • Sponge PluginData support: BuyCraft
  • ASkyBlock challenges support to player pages

Improvements

  • Removed Config from debug page as brute force security concerns were raised & it has not been useful in debugging issues.
  • Updated all PluginData plugins to latest versions

Bugfixes

  • Fixed Plan causing LuckPerms to break if another plugin with HikariCP was present (3rd plugin)
  • Fixed Sponge CPU gathering
  • Fixed /plan m uninstalled command not setting servers as uninstalled