Commit Graph

4357 Commits

Author SHA1 Message Date
Fuzzlemann
a96682cca6 Update dependencies 2017-07-25 22:26:07 +02:00
Fuzzlemann
2812b82b6e Conversion to .toString() 2017-07-25 21:43:32 +02:00
Fuzzlemann
48b412978c Adds my own repository 2017-07-25 21:19:35 +02:00
Fuzzlemann
3b5a079c4a Merge branch '3.5.5' of https://github.com/Rsl1122/Plan-PlayerAnalytics 2017-07-25 19:49:04 +02:00
Rsl1122
88c0aa64c9 Added DEFAULT 0 to the modify queries 2017-07-25 20:47:37 +03:00
Rsl1122
31987a4fa5 Fix TPS table cpu addition for older db schemas
Changed Spigot dependency to PaperSpigot jar.
2017-07-25 20:43:53 +03:00
Fuzzlemann
a7e65bdcd9 Fixed rounding 2017-07-25 19:25:01 +02:00
Rsl1122
fab93565b7 Merge pull request #190 from Fuzzlemann/master
Adds an option to enable that all command usages (e.g. /tp and /telep…
2017-07-25 20:16:57 +03:00
Fuzzlemann
1d0939d916 Wrote JavaDocs 2017-07-25 19:11:35 +02:00
Fuzzlemann
49584415ca Using the correct method for getting the variable holder now 2017-07-25 19:09:44 +02:00
Fuzzlemann
8d2b1dbb1c Change some '+ ""' to '#.toString'
Further migration to Java 8 (e.g. Map#getOrDefault)
Gets the TPS per Paper API if Paper is installed

Adds CPU Usage Graph Backend
Still ToDo:
1. Conversion from old TPS structure to new one
2. Frontend
2017-07-25 19:06:52 +02:00
Fuzzlemann
96c48af3b1 Merge branch '3.5.5' of https://github.com/Rsl1122/Plan-PlayerAnalytics 2017-07-25 17:37:50 +02:00
Rsl1122
89ee1a7bc7 Fix Scatter & Length distribution graphs containing duplicate sessions 2017-07-25 18:28:16 +03:00
Rsl1122
a218e509bf Fix #183
Now using scatter graph.
Scatter graph removes duplicate Sessions before visualization
Removed old unused PlayerGraph methods.

Fix a catch for non existing exception.
2017-07-25 17:55:10 +03:00
Fuzzlemann
d4a524f300 Adds an option to enable that all command usages (e.g. /tp and /teleport are combined to one usage)
Clarifies an if-clause
Adds JavaDoc to the MathUtils and makes the return method more compact
Updates JavaDoc in the GeolocationCacheHandler due to the commit b466edf777
Removes some unused variables
2017-07-25 14:40:29 +02:00
Rsl1122
29e3f18725 Typo fixes & Cleaning 2017-07-25 13:27:57 +03:00
Rsl1122
7e3c5ec217 Fixes Metrics Init Error. 2017-07-25 12:39:15 +03:00
Rsl1122
173d5c2f7e Implements #185 ( Fix #185 ) 2017-07-25 12:14:30 +03:00
Rsl1122
3769c303fb Fix webserver being unable to respond due to open socket -> endless inputstream.
(Introduced in 7e03c1dcc0)

Fix #179

Attempts to use scatter graph for inspect page, code still needs refining.
2017-07-25 11:27:08 +03:00
Rsl1122
7a4edcac03 Fix #168
Update included jar file to the fixed version
2017-07-25 10:40:05 +03:00
Rsl1122
3bf90b4e3f Fix typos & Clean code, Fix #188, Fix imports to new location of Html class 2017-07-25 10:36:21 +03:00
Rsl1122
0667f51654 Fix #169 2017-07-25 09:58:03 +03:00
Rsl1122
b466edf777 Fix failing tests, Fix Format import 2017-07-25 09:37:37 +03:00
Rsl1122
4c570520b8 Merge pull request #182 from Fuzzlemann/master
Some more modifications & bugfixes
2017-07-25 07:54:12 +03:00
Fuzzlemann
0e8b1b2f1c Adds the setting to not log commands that are unknown 2017-07-24 20:22:54 +02:00
Fuzzlemann
bf47ca79a7 Temporary fix for issue #187 2017-07-24 19:11:36 +02:00
Fuzzlemann
5a92ef99fd Geolocation Cache implemented, it uses the Google Guava Cache.
More info can be found in the JavaDoc of GeolocationCacheHandler.

Misc:
Removes unnecessary variables which aren't accessed
Adds some debug messages
Fix some typos
Change some variable names to fulfill the java conventions
Making the code somewhat more viewable
Correct the amount of requests that can be sent per hour
Removes one == null call because the variable is never null
2017-07-24 18:40:48 +02:00
Fuzzlemann
4c317221f4 Fixes one JavaDoc mistake (one linebreak is missing)
Changes some variable names (e.g. to lowerCamelCase to fulfill the java convention)
Changes .replaceAll to .replace where no regex is needed (Same output everywhere)
Removes .replaceAll(":", "-") in ManageUtils.backup because no ':' is present in the String that it replaces (and it's every time the same in terms of the construction)
Changes '(Long start) ->' to 'start' in ManageUtils.containsCombinable
2017-07-24 15:47:23 +02:00
Fuzzlemann
31b432d01e Modify the method getting the biggest int / long of a collection to using streams instead of doing it manually.
The reason for it is to adjust it to the other methods in the same class
2017-07-23 20:54:14 +02:00
Fuzzlemann
4399f8aecc Changed msgs to messages 2017-07-23 19:11:05 +02:00
Fuzzlemann
fb313ac0c8 Removes redundant throws (e.g. when Exception and IOException are thrown IOException got removed because it's unnecessary) 2017-07-23 18:41:30 +02:00
Fuzzlemann
d9730c3c63 Remove unnecessary .stream() call if only .forEach() can be used
Remove .exists() call at deletion because .delete() doesn't throw a FileNotFoundException when the file isn't present, it just returns false
2017-07-23 18:35:13 +02:00
Fuzzlemann
06bd3518f6 Simplifies if statements with && or ||
Removes one not existing argument in a JavaDoc
Removes some unnecessary variable assignments
Remove the check if an error happened while hashing the password in RegisterCommand.playerRegister because it's not possible that the hash is null
Fixes that the command use table isn't limited -> now again limited (Bug caused by my conversion to foreach)
More performance by using .computeIfPresent at GeolocationPart.addGeoloc(String)
2017-07-23 17:18:08 +02:00
Fuzzlemann
9719d3097f Fix some typos in the JavaDoc 2017-07-23 15:47:46 +02:00
Rsl1122
c403737ec8 Merge pull request #178 from Fuzzlemann/master
Code modifications
2017-07-23 16:38:50 +03:00
Fuzzlemann
cda005b7fd Reverts changes at analysis.html and player.html 2017-07-23 15:27:01 +02:00
Fuzzlemann
28c3db5da0 Removes private at Enum constructors (because they aren't needed at all) 2017-07-23 14:16:10 +02:00
Fuzzlemann
0b0c9c6610 Removes unused labels 2017-07-23 14:13:59 +02:00
Fuzzlemann
e5a8bc1213 Inlines unnecessary local variables 2017-07-23 14:13:14 +02:00
Fuzzlemann
b091e13ad5 Replaces 'if' statements with && or || where possible 2017-07-23 14:10:41 +02:00
Fuzzlemann
f1ae1c3f8f Removes redundant casts and array creations 2017-07-23 14:07:47 +02:00
Fuzzlemann
0f14efbc46 Simplifies 'if' statements 2017-07-23 14:04:55 +02:00
Fuzzlemann
a45f092208 Replace String concatenation in loop with StringBuilders 2017-07-23 13:54:24 +02:00
Fuzzlemann
7337801124 Replaces Arrays.asList with Collections.singletonList when only one argument is present
This change saves resources
2017-07-23 13:53:10 +02:00
Fuzzlemann
5cf5eaf1ad Replaces .compareTo with Long.compare when possible 2017-07-23 13:51:54 +02:00
Fuzzlemann
8a90f60142 Further migration to Java 8 and more things
1. Replace unnecessary statement lambda to expression lambda (without the {} when only one expression is present)
2. Change map.get(i) == null ... to map.computeIfAbsent
3. Simplifies comparators
2017-07-23 13:51:00 +02:00
Fuzzlemann
cb860d16f4 Replace unnecessary lambda with Method References 2017-07-23 13:47:15 +02:00
Fuzzlemann
1decc82957 Adds annotation @SafeVarargs in the Setup class
Replace Collections.sort() with #List.sort()
2017-07-23 13:44:29 +02:00
Fuzzlemann
6966ed2206 Replaces 'for' and 'while' loops with 'foreach' 2017-07-23 13:41:37 +02:00
Fuzzlemann
7e03c1dcc0 Fixes NullPointerException at parse by checking if the line is null instead of checking if the line is empty 2017-07-23 13:36:18 +02:00