Commit Graph

262 Commits

Author SHA1 Message Date
Luck
fe77834cef
Optimize LookupSetting storage/manipulation within Contexts
Fixes some performance issues resulting from bad use / implementation of ImmutableEnumSets
2018-11-23 23:58:49 +00:00
Luck
2da6298c53
Update references to the project website 2018-11-22 15:25:39 +00:00
Luck
acb56d683a
Add missing since tag to MetaStackFactory 2018-11-06 15:42:59 +00:00
Luck
5dda522a62
Add option to deduplicate prefix/suffix stacks (#1285) 2018-11-06 14:29:15 +00:00
Luck
dcc4656e5e
Update buildscripts for Sponge Ore deployment 2018-10-15 22:30:36 +01:00
Luck
aa4139f0b7
Release v4.3.0 2018-09-23 15:04:15 +01:00
Luck
e2f1c1e16b
Remove specific dependency on Sponge API 8 in the mod info file (#1221) 2018-09-23 15:02:02 +01:00
Luck
1e7ef15e54
Fix class cast exception in NodeTypeKey#getTypeName (#1230) 2018-09-23 14:38:27 +01:00
Luck
1cc156d6f6
Fix buildscript deployment config for Sonatype 2018-09-23 14:30:09 +01:00
Luck
75f0f40d70
NonNull annotations should be on the same line in interfaces 2018-09-19 21:12:54 +01:00
Luck
3941c77826
Move from findbugs jsr305 to checker-qual 2018-09-19 20:40:25 +01:00
Luck
eca6b09b18
Refactor config keys 2018-09-05 20:49:37 +01:00
Luck
9e769904bf
Expose TemporaryMergeBehaviour in the API (#1189) 2018-09-05 11:11:45 +01:00
Luck
55220e9d10
Add support for Velocity 2018-08-26 22:24:46 +01:00
Luck
56df15caf8
Add bukkit-legacy build back to the main project 2018-08-11 18:11:30 +01:00
Luck
03720665b3
Move to gradle 2018-08-10 20:39:29 +01:00
Luck
b8466beee5
Completely rework event system
* Event instances are now generated dynamically at runtime. The performance hit of creating proxies at runtime is negligible in this case.

* A better EventBus implementation is now being used internally, API contracts are unaffected.
2018-08-09 22:39:33 +01:00
Luck
b1ab465991
Misc cleanup 2018-07-29 17:12:05 -07:00
Luck
952e41ad3d
A few API javadoc improvements 2018-07-27 23:45:16 -07:00
Luck
2036127612
Cleanup action log formatting and pagination
This is technically a breaking change to the API, but I'm fairly certain hardly anyone is using these methods (the pagination functionality in the API is pretty useless)

Can always add them back if it becomes an issue
2018-06-18 16:08:18 +01:00
Luck
c66622bd09
Fix regex permissions not really working properly (#1021) 2018-05-29 14:45:21 +01:00
Luck
a0be1c7c48
Fix issue with Bukkit attachment permissions never being removed (#991) 2018-05-13 14:06:23 +01:00
Luck
1639879106
Reduce the number of config lookups required when calculating contexts 2018-05-12 01:51:38 +01:00
Luck
51f215b8ac
Add PlayerDataSaveEvent 2018-05-06 18:21:14 +01:00
Luck
64838708ab
Release version 4.2.0
blaze it
2018-05-06 17:16:36 +01:00
Luck
c4c98aaabf
Improve the behaviour of the APIs (now somewhat redundant) holder refresh method 2018-05-04 23:17:06 +01:00
Luck
2dbbea4993
Remove the locks in NodeMap to ease thread contention when lots of processes are resolving inheritance & refactor the way LocalizedNodes are created (#734) 2018-05-04 16:16:12 +01:00
Luck
f556c75d94
Allow display names to be set in specific contexts (#963) 2018-05-02 21:27:21 +01:00
Luck
4547b52748
Refactor extended node types, general cleanup 2018-05-02 20:18:57 +01:00
Luck
3784d904fb
Some small fixes and changes for ContextSet implementations 2018-04-27 18:50:36 +01:00
Luck
fef6ebf793
Context set values should be lowercase'd too 2018-04-26 19:51:05 +01:00
Luck
97121bc719
Add some missing null check annotations 2018-04-25 21:02:17 +01:00
Luck
1312aac349
Add promote and demote methods to the API (#938) 2018-04-25 19:58:56 +01:00
Luck
f5c6b9e3d4
Add 'permission clear' command (#893) 2018-04-04 18:46:01 +01:00
Luck
7684ac5d3a
Add extra parameter to EventBus#subscribe which allows a handler to be bound to a plugin 2018-04-02 17:26:02 +01:00
Luck
5db3820df4
A few minor API javadoc changes 2018-03-12 18:58:11 +00:00
Luck
8f82ef7eb4
Add copyFrom method to Node.Builder 2018-03-01 09:19:26 +00:00
Luck
98fb9946e4
Refactor Contexts class 2018-02-28 19:13:21 +00:00
Luck
a42d27f056
Don't intern strings in ContextSets (#797) 2018-02-26 17:27:28 +00:00
Luck
168e712324
Update API to 4.1 2018-02-23 22:13:41 +00:00
Luck
966bf8bf51
Replace deprecated method usage in NodeTools 2018-02-23 14:20:30 +00:00
Luck
736105cc12
Add node equality predicates, and provide way to determine hasPermission behaviour using them (#782) 2018-02-22 23:34:35 +00:00
Luck
31e436868d
Nukkit support (#764) 2018-02-18 15:10:35 +00:00
Luck
31df29194b
Add source to UserPromote & UserDemote events (#722) 2018-02-01 21:33:32 +00:00
Luck
fe200ca1ec
Add API methods to load users/groups/tracks and return a future encapsulating the resultant object instead of a success flag 2018-01-30 15:55:36 +00:00
Luck
e28d15456c
Update some dependencies 2018-01-25 23:31:31 +00:00
Luck
72d4e5cf7a
Remove the 'use-server-uuids' option and internal UuidCache system
The feature has stuck around since the early days - and solves a problem which really should never occur.
2018-01-21 20:18:13 +00:00
Luck
821dc4ef56
Expose a means to implement the plugin's MessagingService via the API 2018-01-19 23:35:41 +00:00
Luck
ed223f0e4e
Don't allow empty context keys/values (#688) 2018-01-15 20:06:20 +00:00
Luck
ea94bd8696
move bukkit-legacy module to a separate project, cleanup poms 2018-01-08 20:01:02 +00:00
Luck
f646c04d09
Remove lombok from the project 2018-01-07 18:40:23 +00:00
Luck
3413adf16f
Send a different type of update ping for user changes, and only apply the change if the user is loaded 2017-12-28 13:37:55 +00:00
Luck
3d6aa69ca1
Improve various javadocs, add LogNotifyEvent 2017-12-27 17:00:54 +00:00
Luck
6602b23f09
misc cleanup 2017-12-23 23:51:42 +00:00
Luck
fb92fd9357
Extract out common constants & magic values into factory classes 2017-12-18 22:19:25 +00:00
Luck
a415a2705f
Return the loaded objects from storage methods as opposed to success flags 2017-12-18 17:03:59 +00:00
Luck
f86bdb7619
Misc cleanup 2017-12-17 12:17:46 +00:00
Luck
0bec93ab1c
refactor context sets 2017-12-11 19:02:02 +00:00
Luck
a5e41e479a
Use static empty context set where appropriate, cache reversed comparator instances 2017-12-07 19:49:04 +00:00
Luck
e2b9e37867
Change poms to conform to Sonatype's OSSRH requirements 2017-11-28 22:22:52 +00:00
Luck
6ca9eb13dd
General tidy up 2017-11-18 23:20:48 +00:00
Luck
22fba0c172
Fix broken usage of LogEntry#getActed 2017-11-09 21:05:06 +00:00
Luck
14005563a3
Move #refreshCachedData up the type hierarchy into PermissionHolder 2017-11-08 22:59:22 +00:00
Luck
a115ff8ce2
Final bits of API refactoring, add group data caches, fix issue with LPPermissionAttachment fake map injection 2017-11-08 22:55:05 +00:00
Luck
d75b29f51d
Move a couple more methods around in the API 2017-11-08 15:48:55 +00:00
Luck
175a21c0e4
API 4.0 - this is a breaking change 2017-11-07 22:05:49 +00:00
Luck
54695b8046
Form more descriptive console & import usernames 2017-10-23 23:37:55 +01:00
Luck
b26fc69e73
Remove usage of the now-redundant ExtractedContexts class, other misc cleanup 2017-10-15 14:23:51 +01:00
Luck
5732e60510
Remove cleanupUsers functionality
It was pretty useless (and wasn't implemented on SQL/Mongo storage types.) Data is naturally cleaned up over time as users are loaded/saved.
2017-10-12 20:38:08 +01:00
Luck
a3d78f4d0e
Always load dependencies into the plugin classloader, and not it's parent - fixes #479 2017-09-17 19:30:43 +01:00
Luck
096885d91f
Add tracing to /lp verbose, API updates/cleanup, add login process event, and utilise string interning for faster context/node comparisons 2017-09-10 21:25:00 +01:00
Luck
269aa39378
Fix comparator and ensure @Nonnull annotated methods never return null in LogEntry 2017-08-20 14:51:46 +02:00
Luck
ae8be97db7
Dispatch log entries via the messaging service 2017-08-20 13:32:52 +02:00
Luck
f0ad40825b
Refactor and cleanup Log classes 2017-08-20 01:35:03 +02:00
Luck
046202719a
Correctly export meta/prefix/suffix nodes to command strings 2017-08-14 18:58:12 +02:00
Luck
82466c2e5d
Properly implement Contexts#allowAll - bump API to 3.3 2017-08-13 22:21:04 +02:00
Luck
d23b29aeb1
Update dependency versions 2017-07-07 14:48:42 +01:00
Luck
7d4aca68cc
Fix jsr being shaded & tweak javadoc generation to link to guava docs correctly 2017-07-02 22:04:37 +01:00
Luck
2ffbeeef8e
Add jsr305 annotations to the API 2017-06-24 17:25:13 +01:00
Luck
e50fa17f7c
Store all accumulated meta values in MetaCache 2017-06-19 21:48:52 +01:00
Luck
8766e3b408
Add jar signing to build scripts 2017-06-19 20:09:18 +01:00
Luck
046daf23d0
Deploy source & javadoc jar with the API 2017-06-13 20:17:41 +01:00
Luck
0febdbe3a4
Update copyright headers in the API module 2017-05-21 09:47:08 +01:00
Luck
cc907b6530
Don't catch exceptions thrown inside i/o (#291) 2017-05-18 21:16:31 +01:00
Luck
abc1c164cf
Expose MetaStacks in the API, general cleanup, release 3.2 2017-05-16 21:41:20 +01:00
Luck
6817945e12
Bump sponge API version, cleanup 2017-05-09 12:55:45 +01:00
Luck
4382d5c56d
show uuid in log messages if username is null 2017-04-21 21:28:50 +01:00
Luck
67b5c72520
Cleanup handling of unknown/null usernames for users 2017-04-17 19:31:52 +01:00
Luck
1f54bc41cc
Cleanup poms, update copyright header 2017-04-15 19:01:52 +01:00
Luck
4fb07ff181
API changes for 3.1 2017-04-10 22:26:20 +01:00
Luck
132d0cf578
Fix export command switchprimarygroup output, and log player uuid if their username isn't included 2017-04-07 19:59:53 +01:00
Luck
e68fc7c558
Improve performance of resolve methods in PermissionHolder, other cleanup 2017-04-04 15:22:25 +01:00
Luck
0ec19a8fee
Implement accumulation of static contexts from a file 2017-04-03 01:42:49 +01:00
Luck
e7e2e3f7e0
Allow context pairs to be specified in commands, fix misuse of exceptions in the permission holder class 2017-04-02 18:44:05 +01:00
Luck
1137e476dd
Rewrite inheritance resolution implementation 2017-03-24 22:18:18 +00:00
Luck
073b775566
Implement nicer json format for Sponge local data 2017-03-19 17:54:12 +00:00
Luck
bdff84885a
Enforce that ContextSets use the HashMultimap variant - closes #208 2017-03-18 20:18:18 +00:00
Luck
dbc909a317
Cleanup migration commands 2017-03-13 19:10:36 +00:00
Luck
d18ac2e6eb
Cleanup pom files, maybe improve build speed a bit 2017-03-12 14:28:35 +00:00
Luck
9dc2278083
Cleanup a bit 2017-03-11 21:10:27 +00:00
Luck
bce7fa871d
Fix getAllNodes cache not working properly, remove pre-process contexts on Bungee & cleanup some unused methods 2017-03-11 17:55:50 +00:00
Luck
df99ef4481
misc cleanup 2017-02-26 12:43:35 +00:00
Luck
26afb69a14
Cleanup LuckPermsSubjectData (fixes #194) 2017-02-26 01:00:02 +00:00
Luck
6798fb21b2
Events rewrite, remove most deprecated API methods (v3.0) 2017-02-19 14:57:20 +00:00
Luck
9b8d6e1dc7
Modify node escaping to use "\" characters, and remove all limits on node/server/world strings - closes #166 2017-02-04 12:18:45 +00:00
Luck
aea44fc8bc
API changes for 2.17 - closes #123 2017-01-16 20:01:41 +00:00
Luck
6501e5cf8d
Fix bukkit permission subscriptions 2017-01-14 23:19:11 +00:00
Luck
cd7b3b4f6e
Fix compat with older guava versions 2016-12-03 13:55:51 +00:00
Luck
83b0f62d59
Implement full caching for non user/group subjects 2016-12-03 13:26:17 +00:00
Luck
307e2b889c
Changes for version 2.16 2016-12-02 20:20:31 +00:00
Luck
f1606ac51b
API changes for 2.15 2016-11-22 18:27:40 +00:00
Luck
67415babc2
Fix javadocs & fix compile 2016-11-12 16:25:44 +00:00
Luck
563dd4683d
Changes for & release of API 2.14 2016-11-12 14:10:42 +00:00
Luck
9894e45516
Fix issue with Vault lookups not being preprocessed 2016-10-24 15:57:05 +01:00
Luck
383276f47a
Refactor contexts, expose cached data in the API & release 2.13 2016-10-23 16:46:53 +01:00
Luck
cd758d7e48
Bump minor version 2016-10-13 20:40:09 +01:00
Luck
83d9229295
Refactor caching system (WIP) - still working towards #23 2016-10-12 21:57:57 +01:00
Luck
db8f1bca66
Fix API javadoc & fix Bukkit legacy build 2016-10-06 17:21:04 +01:00
Luck
2429831153
API changes for 2.11 2016-10-05 21:40:54 +01:00
Luck
a32ab4bf7f
Show where a permission was inherited from in the inheritsperm command 2016-09-30 19:21:19 +01:00
Luck
3424b0542a
Release 2.10 2016-09-25 17:32:58 +01:00
Luck
5ee6db02ff
Proper context implementation - WIP 2016-09-25 10:19:36 +01:00
Luck
fa9324bda8
Implement basic standalone base, working towards #9 2016-09-20 21:50:28 +01:00
Luck
b8f44df723
Add missing headers 2016-09-10 22:40:36 +01:00
Luck
ea07f05097
Release 2.8 2016-09-07 20:53:33 +01:00
Luck
995fc2ccd8
Bump internal release version and add missing javadoc 2016-09-05 20:06:41 +01:00
Luck
60bcd5f643
Release 2.7 2016-09-05 20:00:01 +01:00
Luck
23df8a2df8
Some small fixes 2016-09-04 16:24:36 +01:00
Luck
57f5a7c4cd
Release 1.6 2016-08-28 22:05:10 +01:00
Luck
6aea3b53f3
Only save unique users 2016-08-28 21:36:16 +01:00
Luck
9f5e194a6e
bug fixes 2016-08-28 17:43:02 +01:00
Luck
a3ebf86f6b
More progress towards 1.6: implement PermissionService 2016-08-28 14:57:03 +01:00
Luck
2a305b1c55
More progress towards 1.6: add transient permissions 2016-08-27 22:01:17 +01:00
Luck
edaf174ebf
Complete refactor of permissions/nodes. progress towards 1.6 2016-08-27 00:32:39 +01:00
Luck
f7baf67985
Improvements to the JavaDocs in the API 2016-08-22 15:50:20 +01:00
Luck
4aa753515d
Add events 2016-08-20 15:43:54 +01:00
Luck
7e933966cf
revert remove sources 2016-08-20 02:19:03 +01:00
Luck
b4d179f7b2
use a proper repo instead of the rubbish jenkins one 2016-08-20 01:39:19 +01:00
Luck
a51acdbc88
remove sources 2016-08-19 22:23:28 +01:00
Luck
a15a0752f4
Add support for MongoDB and H2 database formats 2016-08-19 18:21:16 +01:00
Luck
e9e7d81ddf
Add import/export support 2016-08-18 12:30:51 +01:00
Luck
84afbf26f8
refactor LogEntry & cleanup stream formatting 2016-08-18 00:07:56 +01:00
Luck
ca9037461a
remove lombok from api and attach sources 2016-08-15 16:09:16 +02:00
Luck
e216c235ce
Add logging, prepare for import/export system 2016-08-15 01:51:38 +02:00
Luck
cf85f31da8
Bump minor version 2016-08-09 11:13:01 +02:00
Luck
b70b6f8af1
Add support for regex permissions/servers/worlds and shorthand permissions 2016-08-09 11:09:45 +02:00
Luck
90e074d3ab
Apply bukkit permissions directly, fix sponge listener, other misc changes/fixes 2016-08-07 17:10:37 +02:00
Luck
e14ea73626
Add wildcard permissions 2016-08-07 01:16:05 +02:00
Luck
4e7547c92e
Add proper versioning, bump to 2.0 2016-08-06 18:28:38 +02:00
Luck
8483e78082
Add license headers 2016-08-06 14:36:56 +02:00