Commit Graph

2914 Commits

Author SHA1 Message Date
Rsl1122
bd7a7ef9d0 [Test] Fixed SpongeSystemTest. Mocked Sponge 2018-10-13 13:06:10 +03:00
Rsl1122
3096e962b5 [Test] Fixed BungeeSystem enable test 2018-10-13 12:43:18 +03:00
Rsl1122
55c49bd220 [Test] Fixed BukkitSystemTest
This test was tougher than usual to fix, since Database could not be
provided during object construction due to config setting default not
being loaded. This would have lead to new installs not functioning.

Fixed by replacing all Database injections with DBSystem
2018-10-13 12:19:36 +03:00
Rsl1122
2e4464b558 [Test] Renamed PingInsertProcessorTest methods 2018-10-13 11:22:36 +03:00
Rsl1122
29df1aca2b [Test] Fixed AFKListenerTest 2018-10-13 11:21:02 +03:00
Rsl1122
1758832b8e [Test] Fixed ImportBuilderTest 2018-10-13 11:17:54 +03:00
Rsl1122
baad1b4c44 [Test] Fixed SessionCacheTest 2018-10-13 10:58:00 +03:00
Rsl1122
50cc9a4304 [Test] Fixed GeolocationCacheTest 2018-10-13 10:46:11 +03:00
Rsl1122
de7eb5ddef [Test] Renamed MockUtils to Mockers 2018-10-13 10:45:59 +03:00
Rsl1122
76df161fc7 [Test] Removed FormattersTest (obsolete) 2018-10-13 10:23:24 +03:00
Rsl1122
7e89a24706 [Test] CachingSupplier test to DataContainerTest 2018-10-13 10:19:48 +03:00
Rsl1122
3af725f3ff [Test] TimeAmountFormatter tests fixed 2018-10-13 10:19:28 +03:00
Rsl1122
27a9d8a526 [Test] Renamed methods in WorldTimesTest 2018-10-13 09:59:53 +03:00
Rsl1122
1e0de6a1fe [Test] Improved GMTimesTest 2018-10-13 09:57:45 +03:00
Rsl1122
71e2d52967 [Test] Renamed PlayerKillTest methods 2018-10-13 09:52:08 +03:00
Rsl1122
82c183e63e Merge branch 'apf-3.3.0' into apf-3.3.0-merging 2018-10-12 23:55:39 +03:00
Rsl1122
25b35ac4ca [Merge] Merge apf-3.3.0-merging to apf-3.3.0
This Commit fixes merge and commit issues in the merge.
2018-10-12 23:55:07 +03:00
Rsl1122
e6a263e071 [Merge] Merge apf-3.3.0-merging to apf-3.3.0
This Commit fixes merge and commit issues in the merge.
2018-10-12 23:54:17 +03:00
MicleBrick
8065432f51 [New] Velocity Support by Miclebrick (#740)
This is a merge commit of a PR that introduces Velocity support.
Some of this support has been ported to APF already and will be removed after merge.

Thanks to Micklebrick and astei! :)
2018-10-12 21:34:47 +03:00
Rsl1122
b56deeb546 [Debt] NetworkContainer creation
Added a Factory to NetworkContainer class.

Users can gain access to NetworkContainers via FetchOperations.
2018-10-12 21:30:41 +03:00
Rsl1122
e7b2770295 [Fix] Fixed Analysis Page Caching
Network Page Update Processor was removing the finished analysis right
after it finished.
2018-10-11 22:36:22 +03:00
Rsl1122
5411fdfead [Debt] AnalysisContainer Factory
Since AnalysisContainer was only created in PageFactory it was easy to
inject dependencies for.
2018-10-08 18:12:58 +03:00
Rsl1122
2ea0caa612 [Debt] AnalysisContainer Low TPS Threshold 2018-10-08 18:03:54 +03:00
Rsl1122
6533875aff [Debt] HealthIndex settings
Added settings and formatters to parameters of different health index
mutators.
2018-10-08 18:02:11 +03:00
Rsl1122
ef16f8ece1 [Debt] ActivityIndex thresholds in RetentionData 2018-10-08 17:40:46 +03:00
Rsl1122
23f96f96aa [Fix] Network Settings save/load
Database was not enabled when the call was made, leading to a NPE when
using MySQL. (DataSource not initialized)

Fixed by moving the calls to scheduled tasks inside TaskSystems.
2018-10-08 17:35:04 +03:00
Rsl1122
47213fa564 [V] APF 3.3.1-SNAPSHOT 2018-10-08 16:55:06 +03:00
Rsl1122
81be032ccf [Debt] Updated Network page updating
This moves the network page servers tab generation and removes need for
network page updates on Bukkit servers, so it was removed.
2018-10-07 21:51:01 +03:00
Rsl1122
d448e7f868 [V] Dropped SNAPSHOT from APF version
Abstract Plugin Framework 3.3.0 is now available in central.
2018-10-07 16:46:50 +03:00
Rsl1122
ade810ca8c [Fix] Fix Command registration
Issue was caused by no call to registerCommands was made at runtime.
2018-10-07 16:17:06 +03:00
Rsl1122
1e19acb8ca
Merge pull request #744 from Rsl1122/development
PR for 4.4.7
2018-10-07 11:46:27 +03:00
Rsl1122
d57915e66c
Update versions.txt 2018-10-07 11:45:49 +03:00
Rsl1122
dd3c297fd0 [V] Increased version to 4.4.7 2018-10-06 21:56:58 +03:00
Rsl1122
7f9146fcf4 [Debt] Refactored Server Boxes to network page generation
Some features could not be implemented or will have reduced precision:
- Server type
- Players Online is deduced from TPS data
- Analysis Refresh date is now a true/false based on cache value
2018-10-06 21:38:59 +03:00
Vankka
27c2492599 DiscordSRV plugin data by Vankka (#743) 2018-10-05 22:30:57 +03:00
Vankka
a33ca5b004 LuckPerms Plugin Data by Vankka (#742) 2018-10-04 20:32:34 +03:00
Rsl1122
add18feb83 [Debt] Removed deprecated APF usage leftovers
Removed deprecated:
* Benchmark usage
* TimeAmount usage
* StaticHolder usage
* Log usage
* ErrorManager
2018-10-03 21:33:46 +03:00
Rsl1122
51e2d6fe91 [Debt] Added thresholds to ActivityIndex methods
This required addition of PlanConfig in some places to obtain the values
2018-10-03 20:59:17 +03:00
Rsl1122
6bb24c3903 [New] Set DebugLogger in ConfigSystem
Old Abstract Plugin Framework functionality did this differently,
but now this falls on the hands of developers to not limit the settings.
2018-10-03 20:43:20 +03:00
Rsl1122
c4bf9a500f [Fix] Fixed compile issues
Compile issues were caused by recent changes in APF:
* ISender -> Sender rename
* BukkitCMDSender was in use in test, but was made package private.

Fixes:
* Replaced ISender -> Sender
* Replaced BukkitCMDSender use in MiscUtilsTest
* Moved two database tests out from MiscUtilsTest
2018-10-03 20:26:12 +03:00
Rsl1122
6ca86b8c76 [Debug] Improved debug channel usage 2018-09-29 14:44:23 +03:00
Rsl1122
bd636892d6 [Debt] Fixed Plugin Enable Sequence
Removed PlanPlugin.getInstance()
Temporarily disabled Plugin Bridge hooking
2018-09-29 14:19:29 +03:00
Rsl1122
e60e1abe9a [Fix] Fixed cyclic dependency - WorldAliasSettings 2018-09-29 13:47:19 +03:00
Rsl1122
ea9a8b8812 [Debt] Sorted up some Analysis refresh code
Split AnalysisPage#getRefreshingHtml into new RefreshingAnalysisResponse
class. Moved AnalysisPageResponse.refreshNow to ServerPageHandler.
2018-09-29 13:43:56 +03:00
Rsl1122
3625156b36 [Debt] Moved SRP violation in Session
Session#getLongestWorldPlayed was a violation of Single Responsibility
Principle.
The method was moved to WorldAliasSettings, although still a violation,
it makes more sense there than inside the Session class. It also allows
creation of Session without a WorldAliasSettings dependency.
2018-09-29 13:32:59 +03:00
Rsl1122
e12f258a33 [Debt] PlanAPI getInstance uses a static holder.
This is close to a Singleton pattern, but not quite. Testing required
to know impact of using static here. - Is it possible to set null?
2018-09-29 13:21:54 +03:00
Rsl1122
32044ed016 [Debt] Removed easy use of PlanPlugin.getInstance
This removed easy to remove usages of PlanPlugin.getInstance method.
2018-09-29 12:55:22 +03:00
Rsl1122
aeec459ee9 [Debt] Added PlanFiles to FileResponse constructor
ResponseFactory provides the Response objects this dependency.
Renamed all occurrences of "planFiles" -> "files"
2018-09-29 12:44:56 +03:00
Rsl1122
9b9443adf4 [Debt] Removed ServerInfo.getServerUUID() method
Most uses of this method were already handled, but database related were
not. Dependency was met by adding a Supplier<UUID> to SQLDB class.
Patch and Table classes have getServerUUID() method that use supplier in
SQLDB.

UserImportDataBuilder required the dependency, and it was provided via
UserImportData#builder(UUID).
2018-09-29 12:40:58 +03:00
Rsl1122
bca1371774 [V] Updated PluginBridge jar 2018-09-29 12:17:28 +03:00