Commit Graph

2325 Commits

Author SHA1 Message Date
Rsl1122
a68fde3e9e [Fix] Compile issues on PluginBridge 2018-11-04 19:42:08 +02:00
Fuzzlemann
81533718cd [Fix] Test & /raw/server/ improvements (#776) by Fuzzlemann
* Optimizing the loading of the network page and raw server data page

-> Loads the nicknames in bulk instead of one by one
-> Performance gain with the raw data 45719ms vs 10054ms
-> Scales up with more even more users

* Adding UsersTable#getUUIDsAndNamesByID so when you want to get the UUID and the player name you do not have to execute UsersTable#getPlayerNames and UsersTable#getUUIDsByID
-> Performance improvements

* Fixes the test failures

* Renamed method names so they correctly show the real DB used
True fix of the tests (no fail after ~3500 passes)
  -> Implementation of TestRunnableFactory
  -> Removal of the timeout on CommonDBTest#testSaveCommandUse which is way too sensitive to the testing environment (disk speed, etc.)
2018-11-03 22:09:12 +02:00
Fuzzlemann
471a830c9f [New] H2 Db Support + improvements (#774) by Fuzzlemann
* Adding H2 Database Support

* Making HtmlCompressor a constant so it is not created new each time it is used.
Note: It is thread-safe (see: https://code.google.com/archive/p/htmlcompressor/ "HtmlCompressor and XmlCompressor classes are considered thread safe* and can be used in multi-thread environment")

* Adds the H2 Database to the used libraries in the README.md

* Changes all invalid license headers

* Refactors many methods into an enum named DBType
These methods are:
 -> getName()
 -> getConfigName()
 -> supportsMySQLQueries()

 to a check if the DBType is H2

* KeepAliveTask splitted into separate class to remove duplicate code

* Fixes compilation error

* Refactors Database Tests into one Common class with all generic Database Tests and specific Database Tests

* Fixes some JavaDocs

* Adds license headers

* Optimizing comparisons to enum comparisons
2018-11-03 16:49:55 +02:00
Rsl1122
798a0e77eb Merge remote-tracking branch 'origin/development' into development 2018-10-29 19:46:30 +02:00
Rsl1122
81fc6a20d4 [#771] Fix Bukkit based servers TPS 2018-10-29 19:46:19 +02:00
Fuzzlemann
91d8731ab5 [Merge] Median and DecimalFormatter improvements (#765) by Fuzzlemann
* Generified Median.java
* Improves performance when comparing Integers because of Collection -> Stream -> List conversion removal. Instead of Median.forInt or Median.forLong Median.forList can be used.
* Now every type of number can be compared
* Storing DecimalFormat rather than creating a new DecimalFormat object each time it's applied
* Added JavaDocs for Median.java
2018-10-29 14:42:50 +02:00
Rsl1122
ded4d01e53 [#768] Fixed issues with plugin bridge listeners 2018-10-28 11:02:09 +02:00
Sprungente
7d8bc3f2ad German Locale enhancements (#766) by Sprungente 2018-10-28 10:22:37 +02:00
Rsl1122
acfa885a0d [Fix] Fix ping method usage on Paper 2018-10-28 10:20:16 +02:00
Risto Lahtela
916a0d3aed
[License] Updated license headers (#767) 2018-10-28 10:10:56 +02:00
Risto Lahtela
ee02648d9f
[Merge] Changing license from proprietary to LGPLv3 2018-10-28 08:59:38 +02:00
Rsl1122
684ca65ba5
Update versions.txt 2018-10-27 16:52:03 +03:00
Rsl1122
d7694a0f1c
[Merge] Version 4.5.0 2018-10-27 16:38:39 +03:00
Rsl1122
a531f23bef [Fix] Fixed exception on CraftBukkit servers
Related to Ping gathering and Player.Spigot class
2018-10-27 15:57:11 +03:00
Rsl1122
a131bb7dc8 [V] 4.5.0 Version change
- Updated APF to 3.3.1 (removed SNAPSHOT)
2018-10-27 15:42:32 +03:00
Rsl1122
8aa7fd12e0 [Fix] Velocity enable sequence
- Annotation processor
- Fixed APF parts and added listeners that allow enable and disable.
2018-10-27 15:17:45 +03:00
Rsl1122
23613d7a63 [#752] Html Customization for favicon.ico file
Added a new favicon.ico file that can be customized like all other
web files, by placing a favicon.ico file to /plugins/Plan/web
2018-10-27 11:51:36 +03:00
Rsl1122
7d1f70e5a1 [#759] Fix No enum constant errors related to AAC
This fix prevents these errors in the future if the Enum changes again.
2018-10-27 11:19:18 +03:00
Sprungente
00e543021f [Merge] German Translations for 4.5 Release (#760) by Sprungente 2018-10-27 09:23:48 +03:00
Rsl1122
4e36545e0a [Fix] Network page oddities
- Fixed Analysis button being green after a 404 on analysis refresh
- Fixed Online graphs going back more than two weeks on servers tab
2018-10-26 13:52:47 +03:00
Rsl1122
05bb441b2d [Fix] Network page registered players SQL 2018-10-26 13:18:53 +03:00
Rsl1122
6aed02e43b [Fix] SQL Timings only in dev mode 2018-10-26 12:59:21 +03:00
Rsl1122
a2b6a3b1e5 [Fix] Help command permission checking 2018-10-26 12:44:53 +03:00
Rsl1122
5c9e2426d7 Merge remote-tracking branch 'origin/development' into development 2018-10-26 12:44:19 +03:00
Rsl1122
436865e8e4
[Merge] Fixed SLF4J warnings (#757) by PyvesB 2018-10-26 08:40:38 +03:00
PyvesB
2d328e1e31 Fixed SLF4J startup warnings 2018-10-25 23:09:09 +01:00
Rsl1122
d490bb64b9 [Fix] Dev release update notification icon 2018-10-25 11:34:43 +03:00
Rsl1122
5e2f61cb54
Update versions.txt 2018-10-25 11:33:03 +03:00
Rsl1122
04c831b9b3 [Fix] Tests fail when server is running 2018-10-25 11:23:06 +03:00
Rsl1122
633f5ba98a [New] Moved update notification to website
Dev releases and releases distinguished by icon
2018-10-25 11:22:37 +03:00
Rsl1122
1d6a6b4b07 [Fix] Fix injection issue 2018-10-25 10:38:17 +03:00
Rsl1122
b7595b12e8 Added Registered player counts per servers 2018-10-25 10:32:58 +03:00
Rsl1122
1bb75299ff [Smell] Rename Nginx -> Proxy in HTTPS Override
Thanks to Miclebrick for the observation.
2018-10-25 10:16:51 +03:00
Rsl1122
7689457d1f [#707] Task for refreshing the /players page
Run every 5 minutes - I'll make it configurable later in a config update
2018-10-24 22:32:35 +03:00
Rsl1122
7bb97f4ffc [#737] Free Disk Space Tracking
- Added a new free disk space to TPS, in megabytes
- Added Gathering method to TPSCountTimers
- Added Column to plan_tps
- Added Patch for adding plan_tps column
- Added Disk usage point mutation method to TPSMutator
  - Filtered out -1 values in Disk and CPU graphs
- Added DiskGraph and its factory method
- Added 'diskSeries' placeholder replacement to AnalysisContainer
- Added diskGraph.js for drawing disk graph
- Added 'diskMedium' & 'diskHigh' threshold placeholders
- Added Medium and high disk threholds to settings
- Replaced MB references with Mb, since B is bit and b is byte
- Added Html Lang
2018-10-24 22:25:43 +03:00
Rsl1122
98aaff0328 [New] Added Nginx HTTPS Override
HTTPS routing override can be activated by setting keystore path to
'nginx' - In this mode Plan uses HTTP server and gives out HTTPS links.

Affected issues: #669
2018-10-23 15:12:45 +03:00
Rsl1122
314e0a2ca7 [New] Added Health info stuff to locale
Affected issues: #734
2018-10-23 14:43:10 +03:00
Rsl1122
cff7fffe92 [New] Added 'Today' and 'Yesterday' to locale
Affected issues: #734
2018-10-23 13:26:34 +03:00
Rsl1122
6cd77fd7fd [Fix] IllegalStateException on test, DiscordSRV version 2018-10-23 13:21:09 +03:00
Rsl1122
b9027294ef [Fix] Patch system apply check
Wrong method was in use for database name setting retrieval, resulting
in wrong query. Fixed by replacing usage with correct method

Affected issues: #754
2018-10-22 20:27:12 +03:00
Rsl1122
ca01c26a19 [Fix] Fixed URI parsing
Issue: Can not view non-ascii player name pages
Cause: Raw encoded URI was in use (Contains %20 etc)
Fixed: Decoded URI now in use

Affected issues: #735
2018-10-14 22:33:19 +03:00
Rsl1122
fa34a6c0e6 [Fix] Fixed error in time calculation in Health
Issue: monthAgo - twoWeeksAgo players time is 0
Cause: twoWeeksAgo calculated wrong, being BEFORE monthAgo
Fix:   Move parenthesis

Affected issues: #741
2018-10-14 22:19:38 +03:00
Rsl1122
a757bf7334 [Fix] Fixed refresh formatting inconsistency
${refresh} now uses clock formatting
${refreshFull} now uses full date formatting

Affected issues: #738
2018-10-14 22:11:47 +03:00
Rsl1122
72f0937524 [Fix] Prevented session save from server thread
Affected issues: #748
2018-10-14 22:07:16 +03:00
Rsl1122
b5c29a1c0d [Fix] Fixed issues with Ping gathering
Affected issues: #749
2018-10-14 22:04:00 +03:00
Rsl1122
6a8f93be89 [New] Implemented update check setting
Setting: Plugin.Check-for-updates

Affected issues: #751
2018-10-14 21:41:16 +03:00
Rsl1122
0b7198df07 [Fix] Fixed Sponge network setting load error 2018-10-14 21:32:04 +03:00
Rsl1122
6ecf52beda [Smell] Duplicate provides definition removed 2018-10-14 15:38:52 +03:00
Rsl1122
dd0362599f [Smell] Moved plugin modules under modules.plugin 2018-10-14 15:33:36 +03:00
Rsl1122
7e85752e66 Updated pluginbridge jar 2018-10-14 15:19:38 +03:00