Commit Graph

125 Commits

Author SHA1 Message Date
Rsl1122
af8616a208 More mock & test fixes 2017-04-04 21:31:13 +03:00
Rsl1122
39ed2de9dd Fixed most of the already written tests with Mocking
**Pit**
Line coverage: 613/4256 (14%)
Mutation coverage 181/1975 (9%)

Next step is to mock scheduler to be able to test database with unit
tests.
2017-04-03 21:55:33 +03:00
Rsl1122
de28ed4612 [2.9.3] Fixed colors for commands
Ignored all tests because they will require getConfig method to be
mocked. (Settings Enum requires config, Phrase uses Settings for color
codes)
2017-04-02 12:41:01 +03:00
Rsl1122
f53d041f9e [2.9.2] Fix #72 #71 2017-04-02 12:13:46 +03:00
Rsl1122
110057684e More tests and changes to allow more tests 2017-04-01 13:40:48 +03:00
Rsl1122
0feef90973 Added some unit tests & Pit and Checkstyle tools 2017-03-31 20:34:21 +03:00
Rsl1122
aaae83cb0a [2.9.1] Bugfixes
Fixed #70 #69 #68 #67 #66 #64
- Changed some things to use Map instead of HashMap
2017-03-31 16:41:49 +03:00
Rsl1122
769fc0d27e Update Class Diagram.xml 2017-03-31 12:16:00 +03:00
Rsl1122
42f7503e55 Update Class Diagram.xml 2017-03-27 19:33:15 +03:00
Rsl1122
5740cab768 Update Class Diagram.xml 2017-03-27 15:01:02 +03:00
Rsl1122
2732549b82 Update Class Diagram.xml 2017-03-27 13:50:26 +03:00
Rsl1122
15e4140100 Added Class Diagram.xml 2017-03-27 12:25:05 +03:00
Rsl1122
e593588c86 [2.9.0] Release 2017-03-23 11:15:39 +02:00
Rsl1122
9e6c342f89 [2.9.0-DEV] Bugfixes
Fix #61 #58 #56 #57 #59
- Fixed GamemodeTimesHandler giving NPE if a gamemode is null.
- Fixed ArrayOutOfBounds if sessions is empty.
- Fixed randomly caused NPE when transforming sessions to length values
(also improved it)

Demographics tab not yet finished.
2017-03-20 14:50:29 +02:00
Rsl1122
388f669fb1 Rename locale_DE to locale_DE.txt 2017-03-19 19:05:29 +02:00
Rsl1122
da06c97238 Merge pull request #60 from Eyremba/patch-1
Added a translation for the German language. (By Eyremba)
2017-03-19 19:04:43 +02:00
Eyremba
b238eb23ad Update locale_DE 2017-03-19 17:43:13 +01:00
Eyremba
5961607a8b Added a translation for the German language.
Version 1.0.
Further optimisations may come if I find anything which can be formulated in a better way.
2017-03-19 17:40:00 +01:00
Rsl1122
43a693403d [2.9.0-DEV] Added demographics tab to analysis page, Bugfixes
Fix #53
Fix #54
2017-03-18 22:40:14 +02:00
Rsl1122
8522e2fb05 [2.8.4] Bugfixes, tostring methods
Attempt to fix #50
2017-03-15 21:54:26 +02:00
Rsl1122
989dc17a4f [2.8.4-DEV] Moved things around, Improvements, Bugfixes
- Fixed new bugs found while creating tests with PlanDebug #47
- Moved manage things around to remove copy-paste code. New ManageUtils
class
- Made analyze more flexible, now allows analysis of any abstract
Database class' data.
- Moved RecentPlayerButtons creation to new class
2017-03-12 21:41:19 +02:00
Rsl1122
ce6b961e99 [2.8.4-DEV] Bugfixes
Fixed #52
Fixed 10 issues found by PlanDebugger #47
2017-03-12 14:18:07 +02:00
Rsl1122
39bb967e08 [2.8.3] Fix #44 2017-03-11 10:05:50 +02:00
Rsl1122
3a5e94ff3c Create ISSUE_TEMPLATE 2017-03-11 09:54:54 +02:00
Rsl1122
a35e4fe940 Fix #45 & small things
- Fixed Equals method for UserData
2017-03-11 09:31:54 +02:00
Rsl1122
446af674b8 [2.8.2[ Added config suggestions from #43 Fix #42 2017-03-10 21:48:25 +02:00
Rsl1122
236a2bd702 Fixed #41 #26
UserData is now copied to avoid null pointer exception after some data
is removed from cache while analysis is running.
Additionally added access and stopAccessing to analysis in case the copy
constructor is somehow flawed, to prevent the data from getting cleared
while analysis is being run.
Also added clear prevention to inspect cache if the data is accessed.
2017-03-09 20:52:05 +02:00
Rsl1122
ef57c59d43 Added repo to pom 2017-03-07 09:19:23 +02:00
Rsl1122
d6fe6af5a0 [2.8.0] Added gm chart back, minor fixes to html 2017-03-06 11:40:07 +02:00
Rsl1122
1abdc26a11 [2.8.0-SNAPSHOT] Further improvements to Html
Fixes for #38 #37 #36
Inspect page html improved
- Removed piechart
Added Session average to inspect & analysis pages
Empty javadoc parts generated
2017-03-05 14:13:25 +02:00
Rsl1122
09a3de2535 [2.8.0-SNAPSHOT] Improved data visualization on analysis page
- Added icon library
- Changed default color of adventure slice
- Added boxes, lots of boxes.
- Added total number of unique commands
2017-03-05 00:12:32 +02:00
Rsl1122
87a3a93f25 [2.7.3] Fix for #35, few icons to analysis 2017-03-04 20:24:39 +02:00
Rsl1122
549cefd098 Bugfix attempts & Error message change
- Changed "Plan has run into error..." to include error type
- More attempts to fix #26
- Null checks for uuid
- Now not saving userdata when uuid = null
- If uuid = null, data will not be fetched.
2017-03-01 11:47:14 +02:00
Rsl1122
75e1cf3e85 [2.7.2] Bugfixes & Optimization
Fix for #31 #30 #29 #28
Possible fix for #26
2017-02-27 14:08:19 +02:00
Rsl1122
a820da3261 Added a couple null checks in an attempt to fix #26
Cause for NPE still unknown
2017-02-25 22:04:04 +02:00
Rsl1122
814f6771a8 [2.7.1] Inspect page additoins
- Fix for #25
- Removed manage combine command
- Added stuff to inspect page
- Factions power now rounded to two decimals
2017-02-25 10:56:39 +02:00
Rsl1122
4ca64e05e4 Updated locale files 2017-02-24 22:40:05 +02:00
Rsl1122
dc05286f19 Removed Charts4j, added Chart.js
Removed Charts4j from the plugin, and moved to Chart.js javascript graph
rendering library - this almost halved the jar size, and analysis might
have gotten a tiny performance boost (Graph rendering delegated to
browsers).
- The new graphs are more accurate, and you can hover over the graphs to
view more in-depth detail about the data.
- This update allows possible multiple lines in one graph in future
updates.
Updated Phrase & Html to include every message that was not yet
available. Updated locale files will be uploaded to github As soon as
possible.
Before they are uploaded using the config locale setting will
malfunction.
2017-02-24 21:23:39 +02:00
Rsl1122
de1a4570b1 [2.6.4-SNAPSHOT] All important things now use Phrase and Html, Bugfix for #24
Plugin.yml version not changed to not push update notification
2017-02-23 19:44:52 +02:00
Rsl1122
b41c51f103 Fix for #23 & typo in Factionshook
"Factions land is reported incorrectly. One of my factions (for OPs) has
only one member in testing, so power 10, but 71 chunks (OPs can claim
more chunks than power allows). Plan reports land = 10. How does Plan
determine faction holdings?"
Yeah fixed that.
2017-02-22 20:49:07 +02:00
Rsl1122
0a9f994049 Fix for #21 & #22
- Fixed Factions Hook trying to get a leader for WarZone, SafeZone and
Wilderness
- Errors no longer thrown when changing db version on mysql
2017-02-22 18:17:32 +02:00
Rsl1122
964954c674 Bugfixes [2.6.1]
- Fix for #17:
Schema now updated properly
- Fix for #18
Hooks to other plugins no longer cause NPE if plugin is not found.
(Added another constructor that sets isEnabled to false)
- Fix for #19
Removed debug message and replaced with continue;
- Fix for #20
Made new player creation async
Made inspect & search commands async
2017-02-22 11:36:09 +02:00
Rsl1122
44d1f6f021 Fix for #17 2017-02-21 22:48:17 +02:00
Rsl1122
091e3eb1c5 [2.6.0-RELEASE] PlanLite features, Analysis tabs, final bugfixes
- Fixed DB removeall method.
more here:

https://www.spigotmc.org/resources/plan-player-analytics.32536/update?update=146125
2017-02-21 22:04:05 +02:00
Rsl1122
f0daeb91c4 [2.6.0] Added most of PlanLite features, added sortable players table
- Added All hooks except Towny
- Text interface missing.
- Untested
2017-02-20 15:29:39 +02:00
Rsl1122
ab03c43204 [2.6.0-DEV] Improved Error Handling and Bugfixes & Small things
- Better error handling & logging. Implemented for SQLDB.java - other
catch clauses yet to be changed.
This was done mainly to be able to run Debugger tests on it.

Bugfixes:
- DB Auto-Commit bug #12 fixed
- New DB creation was no-longer execption free after adding throws
clauses, fixed that.

Bugs:
- SQLException: The prepared statement has been finalized when closing
database on disable, cause yet unknown
- "___ added to cache" called 5-6 times when player joins

Untested:
- Events
- SessionData
- KillData
- Does DB save everything or just plan_users

UnImplemented:
- Location adding in baches
- Location data getting seperately for analysis, not saved to UserData
to speed up get.
- http://www.kryogenix.org/code/browser/sorttable/
- Player data table
- Player session length
- Player online activity graph, week
- PlanLite features
2017-02-17 12:26:13 +02:00
Rsl1122
d706d3431f Minor: Fixed NPE mentioned in last commit 2017-02-16 18:56:16 +02:00
Rsl1122
730ea69e2f [2.6.0-DEV] Changed Database Geting to Async, Changed handlers.
- Changed the way UserData is cached so that it is cached asyncronously.
#16
This was quite complex and I might have made mistakes so I will have to
test it properly.
- Location gathering temporarily disabled, will not be disabled in 2.6.0
when it is finished.

Bugs:
- NullPointerException when data is cleared from cache.
- Might be the reason that kick was not saved when player was kicked.
- DB in auto-commit mode for some reason. Too tired to figure.

Untested:
- All Events
- Manage commands (might get in a infinite loop)
- Error causing UserData when calling a DBCallableProcessor (will be
tested with Debugger)
- SessionData
- KillData

UnImplemented:
- Location adding in baches
- http://www.kryogenix.org/code/browser/sorttable/
- Player data table
- Player session length
- Player online activity graph, week
- PlanLite features
2017-02-16 18:52:52 +02:00
Rsl1122
595adfa740 [2.6.0-DEV] Moved Tester to new Project, Removed PlanLite features, Bugfixes
- Fixed many cases where database might try to save empty data.
(Possible fixes to causes of #13 #8)
- Fixed partially ConcurrentModificationException causes by adding
uData.setAccessing to SaveMultipleUserData
- Sped up Graph creation with functional operations
2017-02-15 22:20:18 +02:00
Rsl1122
249724c162 Changed incorrect imports and packages + Small stuff & bugfixes
- Cleared remaints of ServerData
- Empty nickname no longer added to Nicknames
- SessionData now correctly saved
- Changed imports and packages to main.java.com.djrapitops.plan. (Should
have been done ages ago)
- Organized imports & removed unused imports.
2017-02-14 18:14:06 +02:00