Commit Graph

6385 Commits

Author SHA1 Message Date
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
Rsl1122
cf721a84a1 Update Dependencies.md 2017-07-23 14:22:07 +03:00
Risto Lahtela
16aabd16ee 3.5.4 2017-07-23 13:09:31 +03:00
Risto Lahtela
407cdf987e Merge branch 'master' of github.com:Rsl1122/Plan-PlayerAnalytics 2017-07-23 08:24:36 +03:00
Risto Lahtela
93e8f8a3a7 Fix #174 #173 (Temporary fix) #151 2017-07-23 08:24:10 +03:00
Rsl1122
073855dd84 Update Configuration.md 2017-07-22 17:03:47 +03:00
Rsl1122
7c04533c88 Update config.yml 2017-07-22 17:03:20 +03:00
Rsl1122
ad05c8b78d Update Configuration.md 2017-07-22 17:00:26 +03:00
Rsl1122
465c2bbb11 Update CommandsAndPermissions.md 2017-07-22 16:59:06 +03:00
Risto Lahtela
8c72202657 3.5.2 2017-07-22 11:33:38 +03:00
Risto Lahtela
c17693331b 3.5.1 2017-07-09 16:13:29 +03:00
Rsl1122
c72440d689 Fix bugs 2017-07-09 14:25:36 +03:00
Risto Lahtela
4a78790638 [3.5.0] Merge pull request #142 from Rsl1122/3.5.0
Pull Request for 3.5.0
2017-07-09 10:12:38 +03:00
Risto Lahtela
42035bfabb 3.5.0 2017-07-09 09:38:28 +03:00
Rsl1122
e6b941e85d Refactoring of RslRunnable, #150, pluginbridge jar 2017-07-07 15:40:22 +03:00
Rsl1122
b274f1ded8 Bugfixes, More in depth enable debug & benchmark messages
Fix #152
Fix #153
2017-07-05 11:46:03 +03:00
Rsl1122
4cbc00d87d Code Cleaning
Cleaned code up to DBCallableProcessor (com.djrapitops.plan.cache)
2017-07-04 23:48:19 +03:00
Rsl1122
8cf22de4b6 Improvements & Fix #147
- RslPlugin v1.4.0
- RunnableFactory
- Prevented a collision if multiple RslPlugin implementations are
installed.
- Queues now wait for each other.
2017-07-04 11:24:50 +03:00
Rsl1122
b0045077f6 Bugfixes
Fix #148
Fixed multiple PluginData issues
Fixed ViaVersion being compiled into final jar
Fixed GMTimesTable get multiple method
Fixed Playerlist being sorted the wrong way (Oldest players shown
instead of most recent)
2017-06-30 14:13:53 +03:00
Rsl1122
b7963a1f03 PluginData for SuperbVote, LiteBans, ViaVersion
#131
#125
2017-06-30 13:34:56 +03:00
Rsl1122
cfe876580f More PluginData, Abstractions, Import Offline players, Optimizations
Permission Group table
PluginData objects now use API#getUserDataInspectCache instead of
getOfflinePlayer (It was slow) - Using FakeOfflinePlayer when
OfflinePlayer is required.
Abstracted CommandSender
New Player UserData Creation optimized
Added Importer for players who haven't joined after Plan was installed.
Added Timings to Status command
Importing now temporarily disables Analysis
BenchmarkUtil now not static
Players Table (On analysis page) now limited to last 3000 players due to
browser performance hit with higher numbers.
GMTimes now saved & Get more efficiently (Batches & Single query)
2017-06-29 22:18:53 +03:00
Rsl1122
d03d0836a1 Automatic PluginData config section, GriefPrevention data
Implemented #132
Implemented N.5 of #125

Moved debug log header to BukkitPluginDependency
Task disabling to BukkitPluginDependency
2017-06-28 13:24:14 +03:00
Rsl1122
64dd0b5a20 Fixes & PluginData objects
Fixed #144
Added #138 (ASkyBlock PluginData)
Added perm groups for #131
Fixed extra space before tables appearing
Total now indicated (Plugindata) with a "Total " modifier.
Added config setting for disabling minotaur player heads from analysis
page
Split tps graph axes to left & right
Added TimeAmount enum (BukkitPluginDependency)
2017-06-27 13:44:32 +03:00