Commit Graph

218 Commits

Author SHA1 Message Date
Ivan Pekov
c648d6a541
Fix trailing/leading space after placeholder once and for all (#427) 2020-08-06 14:45:27 -04:00
extendedclip
2d72e274e3 account for empty strings 2020-08-06 14:08:48 -04:00
Ivan Pekov
5065623ab0
Attempt at fixing 413 (#422)
* Attempt at fixing 413

This is my (miserable) attempt at fixing #413
These changes basically fix some potential threading issues and (probably) #413
Local tests went fine for me, but more tests are required.

* Remove delay, fixed -> cached thread pool
2020-08-06 13:54:35 -04:00
Federico López
8698449e5d
Refactorization of the TimeUtil utility class (#423)
* Refactored `TimeUtil` utility class.

* Minimized `TimeUtil#getRemaining`.
* Fixed a bug regarding how days and hours were calculated in `TimeUtil#getTime`.
* Ditched the use of `int`s and use `long`s instead.

* Implemented `int`-taking methods because my dumb ass didn't think it would break.
2020-08-06 13:43:14 -04:00
extendedclip
722e987b93 Dont trim 2020-08-06 13:27:58 -04:00
extendedclip
a00cbf4be3 trim whitespaces 2020-08-06 11:44:34 -04:00
extendedclip
a1d69cd25f Remove hashcode method 2020-08-05 11:53:06 -04:00
extendedclip
f7504b99ca Add registerExpansion and unregisterExpansion back 2020-08-05 11:45:58 -04:00
extendedclip
eeb9c8d5db Restore pre 2.10.7 API functionality for the most part. Only things actually being removed in 2.11.0 are deprecated. No breaking API changes until 3.0 2020-08-04 10:04:34 -04:00
extendedclip
6d38f411ba Include &n 2020-08-03 16:21:56 -04:00
extendedclip
51844cd291 Always provide a copy of the placeholder map 2020-08-03 13:54:28 -04:00
extendedclip
12a358fbd0 Check if canRegister in LocalExpansionManager.register rather than in Expansion#register 2020-08-03 10:24:56 -04:00
extendedclip
dcc8dad4ea Format to Daddy code style 2020-07-31 22:52:07 -04:00
extendedclip
cee6984818 Don't add license to config or plugin.yml 2020-07-31 22:37:00 -04:00
extendedclip
18854647bf Show help in alphabetical order 2020-07-31 21:35:38 -04:00
extendedclip
97fd3a3b5d Make the message differentiate between singular and plural updates avail 2020-07-31 21:30:00 -04:00
extendedclip
0f8ce0c6c3 Set Manager to lower case 2020-07-31 21:18:18 -04:00
extendedclip
9d43b743a2 Remove space before placeholders start 2020-07-31 21:17:41 -04:00
Andre_601
e43b7bf205
Improve dump command (#412) 2020-07-31 19:59:55 -04:00
extendedclip
c7de89bebe Add back deprecated getPlaceholders method 2020-07-31 19:21:11 -04:00
extendedclip
0e733b6933 Force all identifiers to lower case 2020-07-31 12:01:27 -04:00
extendedclip
2e28647497 Force all identifiers to lower case 2020-07-31 11:40:44 -04:00
extendedclip
9b2b6992c7 Make author name white 2020-07-31 11:01:42 -04:00
extendedclip
81aa425616 Fix version and color 2020-07-31 10:52:43 -04:00
extendedclip
fc453a9d7f Add license header 2020-07-31 10:40:37 -04:00
extendedclip
a232294b11 remove register deprecation as it won't be final. Set removal for deprecated methods to 2.11.0 2020-07-31 10:40:03 -04:00
extendedclip
8c829417a7 Added missing commands to help commands, fixed some color / formatting 2020-07-31 10:37:47 -04:00
extendedclip
94ce9d6a6e Add license header 2020-07-31 10:37:01 -04:00
extendedclip
a843369ebd Include JSONMessage with plugin instead of using maven repo to fetch 2020-07-31 10:36:31 -04:00
extendedclip
8e3c942282 Remove deprecation for useful methods, set removal of deprecated methods to 2.11.0, registerPlaceholderHook will fail gracefully 2020-07-31 10:35:47 -04:00
extendedclip
d2945539b3 Deprecate PlaceholderHook but not onRequest 2020-07-31 10:34:11 -04:00
extendedclip
f6e6394a74 dump on someone else 2020-07-30 18:18:37 -04:00
extendedclip
7f767cb222 dump on someone else 2020-07-30 18:14:09 -04:00
extendedclip
c3499416f3 Add dump command to help 2020-07-30 18:07:46 -04:00
extendedclip
6362c9618d Added deprecated registerPlaceholderHook and unregisterPlaceholderHook methods which will throw UnsupportedOperationException so end users can nag authors to update 2020-07-30 09:53:12 -04:00
extendedclip
3605ba4262 Update deprecated methods to specify actual version of removal 2020-07-30 09:31:07 -04:00
extendedclip
499a46898e Update deprecated methods to specify actual version of removal 2020-07-30 09:30:11 -04:00
Sxtanna
8b4a2517c0 updated char replacer to colorize returned replacements as well. 2020-07-29 17:19:30 -04:00
Sxtanna
a78b5fe712 updated to use Player#spigot instead of CommandSender#spigot (I miss Kotlin) 2020-07-29 17:19:29 -04:00
Sxtanna
81225dafbc updated parse command completer to suggest available placeholders 2020-07-28 16:09:30 -04:00
Sxtanna
74bd22eb0c updated char replacer to have spaces in placeholder parameters 2020-07-28 15:18:15 -04:00
Sxtanna
b73a6916cb updated classes with contract annotations 2020-07-27 11:40:58 -04:00
Sxtanna
134086f6a9 updated fileutil to load *vomit* all classes, closes #381 2020-07-27 11:39:11 -04:00
PiggyPiglet
9291184534 Merge remote-tracking branch 'origin/master' 2020-07-27 15:23:11 +08:00
PiggyPiglet
6d502db694 Licensed all files
Added licensing plugin
2020-07-27 15:21:35 +08:00
Sxtanna
f61b6acfa8 updated placeholderexpansion to define its own unregister method 2020-07-26 23:01:12 -04:00
Sxtanna
8360511c50 rewrote discovery and registration code to be composable and higher level 2020-07-26 21:02:55 -04:00
Sxtanna
ee33de5ec8 removed final from deprecated methods, restored fallback for getRequiredPlugin 2020-07-26 21:01:12 -04:00
Sxtanna
a160f3abc9 updated to further phase out PlaceholderHook, added contracts to expansion methods 2020-07-26 18:46:00 -04:00
Sxtanna
86002f50e6 updated to phase out PlaceholderHook 2020-07-26 18:03:31 -04:00