Commit Graph

1426 Commits

Author SHA1 Message Date
Rsl1122
e05574a0b1 Removed rest redundant Log.toLog(String, Throwable) when Class suffices 2018-02-07 18:56:53 +02:00
Rsl1122
57f3a518a0 Attempts at fixing tests where "Another connection wrote to database" 2018-02-07 18:55:04 +02:00
Rsl1122
1945984fc4 Fixed wrong html being cached due to DESC order of queries. 2018-02-07 15:05:42 +02:00
Rsl1122
1c91174ec0 Changed forbidden message 2018-02-07 14:53:49 +02:00
Rsl1122
b572955e23 Fixed Forbidden response being shown on all HTTP responses 2018-02-07 14:52:07 +02:00
Rsl1122
66e3f61203 Fixed 401 response to all css and js queries. Added reason to "cancel" 2018-02-07 14:36:12 +02:00
Rsl1122
ef6ffdb980 DB Implementation replacement for ConfigurationWebAPI. Removed WebAPI. 2018-02-07 14:20:49 +02:00
Rsl1122
b7ef9f62f3 Removed PostOriginalBukkitSettingsWebAPI since it has been reimplemented 2018-02-07 13:33:47 +02:00
Rsl1122
94ba6fe0bb Added the new font awesome script to export 2018-02-07 13:25:32 +02:00
Rsl1122
83c8949b79 Fixed crash when doing /plan a /plan reload in quick succession 2018-02-07 13:22:22 +02:00
Rsl1122
80d32d34e7 Removed Font Awesome stats.js call from the font awesome script. 2018-02-07 12:46:40 +02:00
Rsl1122
be08b73eb1 improved /plan servers command 2018-02-07 11:58:50 +02:00
Rsl1122
6d941766f1 Added warn notifications for dev mode error logs 2018-02-07 11:43:30 +02:00
Rsl1122
7d64a4bfbb Made debug logs easier to read for Benchmarks & ConnectionLog 2018-02-07 11:40:23 +02:00
Rsl1122
af3bdc642d Fixed WebUserAuthException when viewing "/" in HTTPS mode. 2018-02-07 11:39:16 +02:00
Rsl1122
bc1036572f Added ConnectionIn logging (to ConnectionLog) to InfoRequestPageHandler 2018-02-06 18:53:32 +02:00
Rsl1122
a08a8b45ec Replaced NullCheck.check(Obj, Thrw) with Verify.nullCheck(Obj, Lambda) 2018-02-06 18:34:19 +02:00
Rsl1122
22632fb442 Removed some unnecessary constuctor javadocs. Added TPSBuilder 2018-02-06 12:08:10 +02:00
Rsl1122
8f19f8c05b Reduced complexity of some methods. 2018-02-05 16:23:32 +02:00
Rsl1122
54535f2da1 Code Inspection fixes 2018-02-05 15:49:24 +02:00
Rsl1122
466f37ca8f Fixed Forbidden pages due to wrong order for a boolean (#521 / 2) 2018-02-04 14:31:10 +02:00
Rsl1122
a78060acf9 Fixed test flakiness caused by Settings finality. 2018-02-04 12:54:31 +02:00
Rsl1122
eb5c14eff9 Reduced log warnings when connection failed on Bungee (certain requests) 2018-02-02 13:57:02 +02:00
Rsl1122
a6b96009a0 Made TPS Count Task use Peak Player count for minute instead of AVG 2018-02-02 13:23:07 +02:00
Rsl1122
70130f9629 Fixes Network page displaying odd Unique player numbers (#518) 2018-02-02 13:20:50 +02:00
Rsl1122
13e948c1b4 Fixed GenerateInspectPageRequest when player has no data in db. 2018-02-02 13:12:35 +02:00
Rsl1122
6dbf3ee3fa APF 3.1.0 (Fixes #485 & #459 as well as other small annoyances) 2018-02-02 13:12:12 +02:00
Rsl1122
1c0fe8612f Attempt to fix ConnectionFailException when viewing inspect page and some Bukkit servers are offline (#512) 2018-02-01 21:09:39 +02:00
Rsl1122
b6d7be5bd4 Fixed Bungee Analysis refresh attempt when Bukkit not online (#512) 2018-02-01 21:02:04 +02:00
Rsl1122
1155d10934 Fixed IllegalArgumentException: No task with id 6 (#512) 2018-02-01 20:45:00 +02:00
Rsl1122
6f475b8d82 Fixed CacheInspectPluginsTabRequest ArrayIndexOutOfBoundsException #512 2018-02-01 20:43:03 +02:00
Rsl1122
673e0a2790 ActivityStackGraph now only displays Month Day without clock. 2018-02-01 20:20:10 +02:00
Rsl1122
4d92e67caa Style improvements on smaller screens (#481):
- Reduced Sidenav width (+reduced content margin)
- Prevented extra scrollbar appearing next to tabs if they overflow
- Added Zoom to World Map
- Shortened quickbox texts on Information tab on server page.
2018-02-01 20:10:37 +02:00
Rsl1122
fd65d55257 Fixed Midnight appearing as "2 Jan" on PunchCard (#247) 2018-02-01 19:28:17 +02:00
Rsl1122
44cea6ff45 Implemented Settings for Date formatting (#369) 2018-02-01 19:15:05 +02:00
Rsl1122
98d55b2ff2 Added World Name to GameMode slices (#491) 2018-02-01 18:17:53 +02:00
Rsl1122
a6bd3eadcc Added a Stack graph for BuyCraft. (Each currency has own series) 2018-02-01 18:07:18 +02:00
Rsl1122
ab58c06380 Abstracted Stack Graphs 2018-01-31 19:48:59 +02:00
Rsl1122
db81d34214 Fixed Crash on disable if calling ProcessingQueue methods (#515) 2018-01-30 13:35:53 +02:00
Rsl1122
b52782298e Reduced database stress by Network and Players pages. (#499) 2018-01-30 13:11:23 +02:00
Rsl1122
0f372b8db8 Removed redundant addMissingWorlds call that was doing a lot of db calls 2018-01-30 12:35:41 +02:00
Rsl1122
5730e4d9cf Fixed TabsElement and added sql benchmarks in dev mode 2018-01-30 12:00:33 +02:00
Rsl1122
19736cbe8f Added partial JQuery datatables support to TableContainer 2018-01-30 10:43:11 +02:00
Rsl1122
d3621302e6 Removed BuyCraft secret from /debug page config 2018-01-30 10:24:23 +02:00
Rsl1122
099f68be3c Added Html utility for creating Tabs (Like on Performance tab) easily. 2018-01-30 10:22:24 +02:00
Rsl1122
554eb83efd First attempt at BuyCraft support (#475) 2018-01-29 23:01:20 +02:00
Rsl1122
3df0d4f88d Fixes NoSuchMethod on Spigot (#514) 2018-01-29 10:42:04 +02:00
Rsl1122
922562989a Sonar Code smell clean-up 2018-01-28 20:46:03 +02:00
Rsl1122
d813aa547e Removed old API class in main.java.com.djrapitops.plan (Didn't help) 2018-01-28 19:35:22 +02:00
Rsl1122
37b5e69cf3 Fix vuln reported by Sonar 2018-01-28 15:43:42 +02:00
Rsl1122
bc17486fdb Fix bugs & vulns reported by Sonar 2018-01-28 15:35:11 +02:00
Rsl1122
58f2d7f02c Fixed Inspect & Analysis request handling on Bungee 2018-01-28 15:09:31 +02:00
Rsl1122
a55b17246a Simplified connection attempts 2018-01-28 14:54:49 +02:00
Rsl1122
b3ac110dfe Fixed maven shading 2018-01-28 14:21:45 +02:00
Rsl1122
da95ed2583 Fixed Plugins tab for Inspect page 2018-01-28 13:51:28 +02:00
Rsl1122
1f0d74b127 Improved local execution of InfoRequests 2018-01-27 20:17:58 +02:00
Rsl1122
0d4c065b52 PluginBridge now split into Bukkit & Bungee for future compatibility. 2018-01-27 17:37:42 +02:00
Rsl1122
0b57955c9c Fixed most tests. Fixed Bungee init (with a test). Test Cleanup. 2018-01-27 17:30:44 +02:00
Rsl1122
83e90c74db Started work on Test cleanup:
- Moved test packages to standard Maven test path
- Removed PowerMock & EasyMock and started using only Mockito
- Started writing BukkitMockUtil
2018-01-27 13:46:34 +02:00
Rsl1122
1de2723662 Re-implemented GraphTest. 2018-01-27 13:16:45 +02:00
Rsl1122
3d6472343c Re-implemented /plan m setup & /planbungee setup (toggle) 2018-01-27 13:03:22 +02:00
Rsl1122
654cdd3d62 Fixed /plan m backup and /plan m restore 2018-01-26 12:00:16 +02:00
Rsl1122
a8b4caf58b Fixes some things broken earlier:
- Fixed local InfoRequest handling
- Fixed /player/xxx pages causing internal exception
- Fixed /server/ pages remaining as "refreshing" page (Caused by Analysis being run before returning the info page, essentially overriding the finished analysis page)
- Fixed /folder/xxx pages not having javascript or css.
2018-01-26 11:56:29 +02:00
Rsl1122
311be89b03 fixed a bug in jquery.dataTables.js introduced in 0320b2cea8 2018-01-26 11:20:12 +02:00
Rsl1122
9d47cd32a8 Moved a couple data classes to new package. 2018-01-26 11:18:44 +02:00
Rsl1122
7faa619ae3 Fixed lag caused by WorldAliasSettings.addWorld #493 2018-01-25 16:04:40 +02:00
Rsl1122
cefe17ead8 Remove redundant code 2018-01-25 16:02:06 +02:00
Rsl1122
a60f77f06f Fixed some enable issues on Bukkit version. More:
Tested functioning:
- Enable
- Reload
- Analysis & Inspect command
- Debug page
- WebServer functions partially

Tested not functioning:
- /player/playername (Null response)
  - Some PageHandlers return null Response (Not supposed to)
- /server/  (Endless "Refreshing" page)
- /server/name
  - Style responses not found in sub folders (eg /server/page)
- /players (jquery.dataTables.js Unexpected token)
- Internal InfoRequests do not work as intended
- Internal errors in RequestHandler
- /plan manage backup, restore, setup

Not Tested, probably not functioning:
- Bungee
- /plan manage setup

Not implemented:
- Player online information to transfer table
- Config setting transfer
- Bukkit - Bungee Set-up
2018-01-24 21:59:53 +02:00
Rsl1122
2b412f6f7b Fixed PlanPluginBridge compile issues 2018-01-24 20:26:38 +02:00
Rsl1122
0d56a73125 Fixed rest of Compile issues 2018-01-24 20:12:13 +02:00
Rsl1122
ab87923420 Cleaned up main plugin class (Plan) 2018-01-24 19:34:41 +02:00
Rsl1122
c786e7795a Deleted InformationManagers 2018-01-24 19:14:50 +02:00
Rsl1122
9b0d42587b Fixed AnalyzeCommand 2018-01-24 18:53:00 +02:00
Rsl1122
d5fcb1edf0 Fixed compile errors in DatabaseTest (Renamed to SQLiteTest) 2018-01-24 13:10:05 +02:00
Rsl1122
118cbe7ee7 Fixes BatchUpdateException: Subquery returns more than 1 row (#501):
- Added LIMIT 1 to all subqueries used in tables.
2018-01-24 13:00:25 +02:00
Rsl1122
097958c416 Cleaned up some session related stuff while attempting to find a bug 2018-01-24 12:35:00 +02:00
Rsl1122
4d76671bc8 GenerateAnalysisPageRequest now runs analysis properly. In addition:
- Laid groundwork for running analysis of offline servers
- Changed InfoRequest request address to /info/ from /api/ to reduce confusion.
2018-01-24 11:48:23 +02:00
Rsl1122
4e959c325b Removal of re-implemented methods that were deprecated for this refactor 2018-01-24 11:02:16 +02:00
Rsl1122
457334403e Transfer Operations for CacheInspectPluginsTab 2018-01-23 18:38:47 +02:00
Rsl1122
f50d8dc90c CacheInspectPluginsTabRequest 2018-01-23 18:16:09 +02:00
Rsl1122
137b0f3100 Removed endless loop from ConnectionSystem.sendInfoRequest 2018-01-23 17:31:45 +02:00
Rsl1122
334451372b More work on ConnectionSystem 2018-01-22 17:54:08 +02:00
Rsl1122
56717a8947 Implemented Network Page updating 2018-01-21 17:03:56 +02:00
Rsl1122
18b8deac7c Started work on Info system implementations 2018-01-21 13:24:50 +02:00
Rsl1122
a62e15fccd Moved interfaces to inside the using class. 2018-01-20 11:07:07 +02:00
Rsl1122
e9b9c68d07 Moved SQLErrorUtil 2018-01-20 10:42:54 +02:00
Rsl1122
b333fb9919 Implemented TransferTable operations that are called so far. 2018-01-20 10:41:43 +02:00
Rsl1122
ba661ca2e0 Implemented a couple missing Check, Fetch & Save Operations for SQL 2018-01-19 17:24:28 +02:00
Rsl1122
60257a3004 Implementation to WebServer for the new InfoRequest system 2018-01-19 17:18:51 +02:00
Rsl1122
a6b5b25d9a Work on GenerateInspectPageRequest & GenerateAnalysisPageRequest 2018-01-19 16:06:12 +02:00
Rsl1122
a22aa95c22 Refactored Graphs to be Objects. Sensible after "Creator" name removal. 2018-01-19 12:26:29 +02:00
Rsl1122
34198543ff Bukkit ServerInfo 2018-01-18 17:26:37 +02:00
Rsl1122
45ba9d02c0 Removed some deprecated PlanPlugin methods 2018-01-18 14:13:44 +02:00
Rsl1122
f5f488f16a Implemented CacheNetworkPageContentRequest 2018-01-18 12:17:56 +02:00
Rsl1122
027db58a0a Added deprecated API class to main.java.com.djrapitops.plan 2018-01-18 11:59:39 +02:00
Rsl1122
1c488d50f8 Reduced TODO items allover the code 2018-01-17 22:39:08 +02:00
Rsl1122
0320b2cea8 Removed TODOs from code that isn't maintained in this project. 2018-01-17 21:37:17 +02:00
Rsl1122
980c11f287 throws to ConnectionIn 2018-01-17 18:10:36 +02:00
Rsl1122
b8274cbff8 Merge remote-tracking branch 'origin/4.2.0-refactoring' into 4.2.0-refactoring 2018-01-17 18:09:41 +02:00
Rsl1122
1b8ccff2f8 InfoRequestWithVariables, GenerateInspectPage, GenerateAnalysisPage 2018-01-17 18:09:26 +02:00
Rsl1122
31ff342dcc Moved ServerInfo to new packaage 2018-01-17 13:14:39 +02:00
Rsl1122
7118c67c7e Add missing files to VCS 2018-01-17 11:11:13 +02:00
Rsl1122
dc15c61953 Begun coding new Information transfer system 2018-01-17 11:10:28 +02:00
Rsl1122
47f061edcb Rearranged code 2018-01-15 20:17:39 +02:00
Rsl1122
9bbe4b27b2 Move ops to database 2018-01-15 20:15:44 +02:00
Rsl1122
902c7c2470 Fixed some method calls 2018-01-15 15:54:33 +02:00
Rsl1122
0aed988e22 Removed some redundant code & fixed IllegalPluginAccessError (#482) 2018-01-14 21:41:51 +02:00
Rsl1122
15c6e17173 Finished basic responses for ResponseHandler 2018-01-14 21:31:31 +02:00
Rsl1122
65b45ce92c Progress on database refactoring 2018-01-14 15:33:00 +02:00
Rsl1122
8cfaf54cb0 Database refactoring preparations 2018-01-13 22:02:57 +02:00
Rsl1122
91e58d29e2 Cleaned up task registration 2018-01-13 21:20:29 +02:00
Rsl1122
fb09f327ef Split TPSCountTimer into multiple subclasses. 2018-01-13 14:15:35 +02:00
Rsl1122
8f6b196b60 Moved task system 2018-01-13 13:51:52 +02:00
Rsl1122
0e80545e91 Moved queue package 2018-01-13 13:47:05 +02:00
Rsl1122
d9e9843069 Abstracted ListenerSystem, moved Processors to new package 2018-01-13 13:46:32 +02:00
Rsl1122
193cccc650 Format code 2018-01-13 13:23:34 +02:00
Rsl1122
c01094d2c3 Merge remote-tracking branch 'origin/4.2.0-refactoring' into 4.2.0-refactoring
# Conflicts:
#	Plan/src/main/java/com/djrapitops/plan/Plan.java
#	Plan/src/main/java/com/djrapitops/plan/PlanBungee.java
#	Plan/src/main/java/com/djrapitops/plan/system/webserver/ResponseHandler.java
#	Plan/src/main/java/com/djrapitops/plan/system/webserver/response/pages/PlayersPageResponse.java
#	Plan/src/main/java/com/djrapitops/plan/systems/Systems.java
#	Plan/src/main/java/com/djrapitops/plan/systems/info/server/BungeeServerInfoManager.java
#	Plan/src/main/java/com/djrapitops/plan/utilities/analysis/Analysis.java
2018-01-13 13:20:25 +02:00
Rsl1122
3cc84bb6f4 Moved Database to another package 2018-01-13 13:12:49 +02:00
Rsl1122
cd95a0a68e Refactored ActivityIndex to a new class. 2018-01-13 12:54:37 +02:00
Rsl1122
4d5f2b79b9 Progress on WebServer refactoring 2018-01-12 11:02:32 +02:00
Rsl1122
11cb29f7f8 Started refactoring WebServer 2018-01-11 16:37:17 +02:00
Rsl1122
f524568c39 Bukkit & Bungee systems 2018-01-11 16:29:02 +02:00
Rsl1122
96def3ddbb Removed Google Guava from GeolocationCache #218 2018-01-11 16:27:53 +02:00
Rsl1122
b5f16a4400 Removed Google Guava from PageCache #218 2018-01-11 16:26:12 +02:00
Rsl1122
eeadbd2efb Initial batch of refactoring:
- Started constructing the new system to plan.system package
- ProcessingQueue
- VersionCheckSystem
- ConfigSystem
- getInstance accessor methods now check for null
2018-01-11 16:19:31 +02:00
Rsl1122
4b33c5882d Moved all packages from main.java.com.djrapitops to com.djrapitops 2018-01-11 14:17:09 +02:00
Rsl1122
470cc97529 Changed PluginBridge version to one in PluginBridge pom 2018-01-11 13:38:27 +02:00
Rsl1122
b09472d62f
Delete Risto.xml 2018-01-11 13:09:37 +02:00
Rsl1122
7217d093ea
Delete Project_Default.xml 2018-01-11 13:09:29 +02:00
Rsl1122
b0e0cf041f
Delete sonarIssues.xml 2018-01-11 13:09:09 +02:00
Rsl1122
66f89c5046
Delete uiDesigner.xml 2018-01-11 13:08:43 +02:00
Rsl1122
d8ea9264bd Bumped version to 4.1.4 2017-12-16 13:57:49 +02:00
Rsl1122
f7ec19b8b3 Fixed Security Vulnerability: #477 2017-12-16 13:57:28 +02:00
Rsl1122
80018df960 Fixed IOException related to HtmlExport creating folders 2017-12-16 13:05:11 +02:00
Rsl1122
6d34f1d4a0 Fixed new NPE on Bungee caused by refactoring 2017-12-16 13:03:22 +02:00
Rsl1122
31ddad0b98 Version bump to 4.1.3.2 2017-12-16 12:51:28 +02:00
Rsl1122
c462c46a8e Updated PluginBridge jar 2017-12-16 12:46:17 +02:00
Rsl1122
b35d7abf53 Fixed plugin bugs caused by poor refactor copy of Hack table for AAC #474 #473 #471
Renamed plan_viaversion_protocol to plan_version_protocol
Renamed HackerTable from plan_viaversion_protocol to plan_aac_hack_table
And use of wrong method for enum name #470
2017-12-16 12:43:44 +02:00
Rsl1122
598fdc5d72 Sanitized Server.Name setting in a shit way that will need refactoring at some point #472 2017-12-16 12:27:00 +02:00
Rsl1122
2e6d01eab3 Changed DB clean call location (Fixes #476) 2017-12-16 12:06:54 +02:00
Rsl1122
fbc7d6e956 Added a notification for FileNotFoundException reported in #468 2017-12-14 16:46:40 +02:00
Rsl1122
5972deca7f Fixed NPE caused by RegisterCommandFilter #468 2017-12-14 16:43:32 +02:00
Rsl1122
9bf4a94510 Introduced PageId for preventing PageCache identifier mistakes in the future 2017-12-14 16:39:07 +02:00
Rsl1122
3fb21b1d1e Fixed Enable for Bukkit. Also fixed placing wrong address in database #469 2017-12-14 16:16:13 +02:00
Rsl1122
c84ad59da4 Refactored ColorScheme 2017-12-14 16:00:48 +02:00
Rsl1122
0ef23bb751 Modularized enable task registration 2017-12-14 15:53:33 +02:00
Rsl1122
f14c481a29 Added VersionCheckSystem & Modularized Theme 2017-12-14 15:32:15 +02:00
Rsl1122
bd238f4efe renamed systems.store to systems.file 2017-12-14 15:15:51 +02:00
Rsl1122
c1229385c4 WebServer now initialized inside WebServerSystem 2017-12-12 14:05:48 +02:00
Rsl1122
be21756611 Locale no longer requires Plan as variable (Still requires Mock, TODO) 2017-12-12 13:49:26 +02:00