Andre_601
892f0727e8
Fix invalid link tag
2021-01-29 03:29:35 +01:00
PiggyPiglet
dd2981b13e
Merge pull request #443 from PlaceholderAPI/feature/update-documentation
...
Update Javadoc documentation
2021-01-29 10:10:12 +08:00
ElijahRus250
a7247acbb3
2021 🥳
2021-01-20 15:29:13 -05:00
PiggyPiglet
1478aabb5e
remove an from log message
...
Co-authored-by: Andre_601 <11576465+Andre601@users.noreply.github.com>
2021-01-04 10:25:38 +08:00
PiggyPiglet
07ac8e41c5
Fix contract violations & add null checks which should close #515
2021-01-03 23:42:23 +08:00
PiggyPiglet
26fdedd989
Merge pull request #529 from PlaceholderAPI/fix/527-improve-parse-command
...
Fix resolvePlayer method
2021-01-03 23:28:52 +08:00
Andre601
0a52ef7219
Use a generic log message for this
2021-01-03 15:38:10 +01:00
Andre601
6a69ec833f
Use getPlayerExact
2021-01-01 18:19:07 +01:00
Andre601
8fa0f73a46
Fix resolvePlayer method
2020-12-31 18:20:11 +01:00
Andre_601
9b2ea05875
Improve ExpansionsLoadedEvent's docs
2020-12-29 21:12:22 +01:00
Andre601
b99335e5b2
First step at fixing #515 and for #516
2020-12-27 18:47:48 +01:00
Andre_601
a3b2777d16
Merge branch 'master' into feature/update-documentation
2020-12-26 23:01:03 +01:00
darbyjack
3cd665a159
Javadoc Changes
...
- Don't fail on error
- Add license to new files that were merged
2020-12-13 18:58:55 -06:00
PiggyPiglet
4074192c0b
Merge pull request #512 from PlaceholderAPI/fix/javadoc-build-errors
...
Fix Javadoc build errors
2020-12-14 08:54:27 +08:00
Andre601
59cd5982ad
Complete fix
2020-12-14 01:52:46 +01:00
Andre601
b3893c38db
Hopefully fixing all the JD issues
2020-12-14 01:31:40 +01:00
PiggyPiglet
a3d6426084
Merge pull request #473 from PlaceholderAPI/fix/469
...
Fix wrong expansion get in /papi info
2020-12-14 08:09:24 +08:00
Andre_601
30a194c75d
Update PlaceholderAPI.java
2020-12-14 01:08:40 +01:00
Glare
6431bcdeca
Merge pull request #460 from ignissak/444-add-expansionsLoadEvent
2020-12-13 18:07:24 -06:00
PiggyPiglet
0d1978cece
Merge pull request #454 from PlaceholderAPI/feature/add-getBoolean
...
Add missing getBoolean method
2020-12-14 08:04:49 +08:00
Andre_601
e7e9e81e85
Update VersionSpecific.java
2020-12-14 01:04:07 +01:00
Andre_601
ba22201311
Fix Javadoc build errors
2020-12-14 01:02:01 +01:00
darbyjack
f52bdbc458
Compile under 1.16.4 + add new NMS support
2020-11-02 14:35:55 -06:00
darbyjack
c64946173b
Implemented working version for 1.8.8 - 1.16.3
2020-09-25 19:08:56 -05:00
Andre_601
35838aa229
Fix wrong expansion get in /papi info
2020-09-13 00:30:27 +02:00
darbyjack
325cd2d284
Added support for 1.16.2 NMS changes
2020-09-06 16:39:15 -05:00
Jacob Bordas
2c13acfd30
Changes regarding review by Andre
...
Signed-off-by: Jacob Bordas <methalicity@gmail.com>
2020-09-01 01:31:52 +02:00
Jacob Bordas
7c404db56b
Added event when all expansions are loaded for developers.
2020-08-31 13:32:11 +02:00
Andre_601
fe02939466
Add missing getBoolean method
2020-08-28 15:16:03 +02:00
Andre601
ab96120911
More comments... a lot more!
2020-08-18 23:15:23 +02:00
Andre_601
7371a576d6
Update Javadoc documentation
2020-08-18 18:37:44 +02:00
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
8a751cddd5
Use @name@ variable
2020-07-31 22:08:48 -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
0281e5e346
Hardcode plugin name in plugin.yml
2020-07-31 10:33:04 -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
300eb64d89
removed benchmarks for shitty replacer
2020-07-28 12:57:08 -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
b63f10f749
lets pretend no one saw this.
2020-07-26 18:36:50 -04:00
Sxtanna
86002f50e6
updated to phase out PlaceholderHook
2020-07-26 18:03:31 -04:00
Sxtanna
c3e0c1fb64
updated gson 2.8.5 -> 2.8.6
2020-07-26 17:32:28 -04:00
Sxtanna
b464590491
added dump command, closes #366
2020-07-26 16:26:42 -04:00
Sxtanna
65f04ba70e
updated cloud expansion list to be sorted via a configuration option of values [name, author, latest]. closes #363
2020-07-26 13:39:33 -04:00
Sxtanna
07cd344123
updated local expansion to not catch potential linkage errors, and report them. closes #377
2020-07-25 23:57:19 -04:00
Sxtanna
30ead2ae4b
fixed spacing
2020-07-25 23:54:09 -04:00
Sxtanna
9339192f88
updated ecloud list command to use new table utility, added message for when no expansions can be listed
2020-07-25 22:38:41 -04:00
Sxtanna
6eb1ecc212
Implemented general purpose table utility
2020-07-25 22:35:56 -04:00
Sxtanna
973484066a
updated ecloud list command to not paginate by default in console, closes #375
2020-07-25 14:57:10 -04:00
Sxtanna
f177da8ef7
updated parse tab completer to consider the "cmdparse" alias
2020-07-25 13:08:26 -04:00
Sxtanna
d1b50c3db4
updated parse tab completer to call method inversely
2020-07-25 13:07:59 -04:00
Sxtanna
fb7a3ec99d
added tab completion to the update command
2020-07-25 12:55:44 -04:00
Sxtanna
6caed4c23c
updated plugin.yml to include permission for update command
2020-07-25 12:55:44 -04:00
Sxtanna
f7c2e72c1e
added ecloud update command
2020-07-25 12:55:44 -04:00
Sxtanna
85b9fc36da
updated local manager to allow for reregistering expansions
2020-07-25 12:55:44 -04:00
Sxtanna
5861f9fe6a
updated register command to attempt registration on the main thread. (event bullshit I think)
2020-07-25 12:02:34 -04:00
Sxtanna
b6ec478dd6
updated ecloud list command to print to console in a table format.
2020-07-25 10:24:19 -04:00
Sxtanna
89061e6437
fixed ordering of methods
2020-07-24 19:45:28 -04:00
Sxtanna
50cee40531
updated LocalExpansionManager to accept a command sender to notify of load completion details
2020-07-24 19:02:17 -04:00
Sxtanna
00ced0495d
I don't know how this happened, please don't flame me. ty.
2020-07-24 18:51:19 -04:00
Sxtanna
e57a0600f1
Managers Update ( #368 )
...
* added google codestyle plugin
* updated managers to make more sense, removed old
* updated cloud expansion manager to cache with index name
2020-07-24 18:49:18 -04:00
Andre_601
ffe7680795
Fix missing line break in expansion list command.
2020-07-24 14:40:58 -04:00
extendedclip
623fd68ccc
eCloud list outputs expansion information on a single line instead of multiple. Fixes #367
2020-07-24 12:40:07 -04:00
Sxtanna
651de80a01
updated expansion list command to send messages using json
2020-07-24 11:04:12 -04:00
Sxtanna
4c586d1803
updated cloud manager to not be weird
2020-07-24 11:04:12 -04:00
PiggyPiglet
34a0bff760
removed apostrophe, apparently that particular rule doesn't apply to "its".
2020-07-24 17:37:33 +08:00
PiggyPiglet
51abc00e51
added a missing apostrophe
2020-07-24 17:35:21 +08:00
PiggyPiglet
3429d69f9d
Fixed more casings
2020-07-24 17:32:39 +08:00
PiggyPiglet
79b8dd73a5
Fixed missed casings
2020-07-24 17:25:34 +08:00
Sxtanna
fccf0d5bb8
fixed ecloud casing
2020-07-24 05:21:43 -04:00
PiggyPiglet
8b3f37b61e
Merge branch 'master' into gradle
2020-07-24 15:50:17 +08:00
Sxtanna
6fade3fb93
removed obsolete EZPlaceholderHook
2020-07-24 01:39:17 -04:00
Sxtanna
b7d1c6969e
Commands rewrite ( #357 )
...
* began rewriting command system
* began rewriting command system
* updated formatting
* added new info command
* added new reload command
* updated new parse command to support all three parsing types
* added new commands to command router
* deleted old unused commands
* removed parserel
* added new expansion register and unregister commands
* deleted unused commands
* fixed annotation order
* added labels helper to command
* updated alias method to return an immutable view
* updated params param with unmodifiable annotation
* updated router to build an immutable map of the commands
* began rewriting command system
* updated formatting
* added new info command
* added new reload command
* updated new parse command to support all three parsing types
* added new commands to command router
* deleted old unused commands
* removed parserel
* added new expansion register and unregister commands
* deleted unused commands
* fixed annotation order
* added labels helper to command
* updated alias method to return an immutable view
* updated params param with unmodifiable annotation
* updated router to build an immutable map of the commands
* updated plugin class to use new command router
* updated switch to break on parse match
* updated register completions to suggest file names
* updated router to allow entering labels in any case
* updated parse command to send message to players as components
* added command dispatching parsing
* moved new commands into local package
* added helper functions for filtering and suggesting
* updated imports, updated tab completion to use helper functions
* added start of ecloud commands
* replace ecloud enable and disable commands with single toggle command evaluator
* deleted unused commands
* updated commands to use helper functions for suggesting
* updated downloading to use completablefuture, updated all methods to use streams exclusively
* updated to use the config instead of a null check
* deleted old commands system
* finished new command system
* updated to use new method from cloud manager
* fixed annotation ordering and added missing annotations
* updated ecloud subcommands to have a more specific permission
* updated plugin.yml with the new permissions, (and also fixed its formatting)
* fixed annotations intellij missed
* this should probably be there...
2020-07-24 01:29:11 -04:00
Sxtanna
21ca434e72
added unit test for hex code escaping
2020-07-23 12:02:04 -04:00
Sxtanna
d63d7dc5f8
updated char replacer to support hex colors, and escaping &x
2020-07-22 23:59:39 -04:00
Sxtanna
f47eef7442
updated plugin class to be less painful to look at,
2020-07-22 20:42:53 -04:00
Sxtanna
9631b087b3
updated server load listener to be final, and to automatically unregister itself when done
2020-07-22 20:41:27 -04:00
Sxtanna
d7b947ddad
finalized config, added nullability annotations
2020-07-22 20:40:47 -04:00
Sxtanna
656f9ad03c
updated expansion manager to actually... manage expansions
2020-07-22 20:40:15 -04:00
Sxtanna
0a4150d63e
updated fileutil to ignore NCDFEs, and to print exceptions
2020-07-21 16:04:24 -04:00
Sxtanna
377d091ae2
added back deprecated online player method
2020-07-21 12:25:38 -04:00
Sxtanna
bdf8a1bcc1
reformatted event classes, added nullability annotations, made classes final.
2020-07-21 11:56:57 -04:00
Sxtanna
ee78fc1775
updated char replacer to better handle malformed input
2020-07-21 01:48:59 -04:00
Sxtanna
47e336c1fe
Merge branch 'master' into gradle
...
# Conflicts:
# pom.xml
2020-07-20 20:07:38 -04:00
Sxtanna
a2a736d909
undeprecated bracket placeholder methods,
2020-07-20 19:50:36 -04:00
Andre601
75004f08d0
Add deprecation notice to all methods
...
Was it so hard to do a Ctrl+C, Ctrl+V?
2020-07-21 01:20:26 +02:00
Andre_601
51f61f61af
Add missing deprecation notices.
2020-07-21 01:06:37 +02:00
Sxtanna
e7ce84e7fc
cleaned up fileutil and expansion manager
2020-07-20 18:55:37 -04:00
Sxtanna
42992de312
updated with null contracts, immutability, and early returns.
2020-07-20 18:22:08 -04:00
Sxtanna
45b3ebfbc2
updated to use new char replacer, deprecated all older functions, defined null contracts, and immutability.
2020-07-20 18:16:46 -04:00
Sxtanna
3b3892e7d6
updated placeholder hook to define immutability and null contracts, deprecated online player function
2020-07-20 18:14:13 -04:00
Sxtanna
9060ea6bd3
updated to use new closure
2020-07-20 17:38:18 -04:00
extendedclip
49012dc6b2
here
2020-07-20 17:23:27 -04:00
Sxtanna
9d73893cc8
replacer api, unit tests, and benchmarks ( #354 )
...
* added abstracted replacer api, and both char and regex based implementations
* added test dependencies for jmh and junit
* added unit tests and benchmarks for the replacer implementations
* updated replacers to accept specific closure types, added test to verify malformed placeholder handling
* updated jmh to 1.23, updated junit to 5.6.2
2020-07-20 16:59:25 -04:00
extendedclip
4ce0b03852
Revert "Performance Improvements ( #340 )"
...
This reverts commit 54d5757d
2020-07-20 16:57:16 -04:00
Crypto Morin
54d5757d0a
Performance Improvements ( #340 )
...
* Performance Improvements
* More Optimizations
* Even More Optimizations & Cleanups
* Almost a recode I guess
2020-07-16 12:32:22 -04:00
PiggyPiglet
bc0535e2f4
Converted to gradle
2020-07-15 00:56:49 +08:00
extendedclip
f9f59f1f96
Merge the multiple static blocks
2020-07-14 10:24:01 -04:00
extendedclip
f205146c75
Rename ecloud commands to be prefixed with Ecloud to avoid confusion
2020-07-14 10:21:29 -04:00
darbyjack
0634a9cd9b
Switch back to the official JSONMessages
2020-07-14 08:18:06 -05:00
Frcsty
3e396a97b0
Changed command system ( #304 )
...
* Save Cacheable expansions data on shutdown
* Prepare for 1.16
* 1.16.1 is out apparently
* Further fixes, still not done
* Inline JSONMessages & fix for 1.16
* Done :O
* Done for real now, (hopefully)
* Changed to static instead of DI for plugin instance
* Cleanup
* Modified tab completions. Removed extra command.
* Apparently this is needed
* Started cleaning stuff up
basically just pushing so I can continue on laptop
* did more cleaning, probs like half way done
* more cleaning. reverted back to a min arg system somewhat similar to what frosty had, but less boilerplate.
* Started debugging and fixing runtime/compile errors
* Fixed bugs, still needs thorough testing
* Re-enable metrics
* relocated stuff again
* - Remove json message relocation
- uncomment other relocations
- reformat pom
- remove useless scope declaration
- Fix metrics constructor
- Switch commands to use inline json message
Co-authored-by: iGabyTM <contactgabytm@gmail.com>
Co-authored-by: darbyjack <admin@glaremasters.me>
Co-authored-by: PiggyPiglet <noreply@piggypiglet.me>
2020-07-13 15:27:59 -04:00
extendedclip
82fa8d7393
Added 1.15
2020-05-02 23:16:46 -04:00
darbyjack
43d134cbe3
Fixes the super old issue of not being able to parse on first join
2020-04-25 21:57:40 -05:00
aBooDyy
784d7dd273
Fixes ecloud placeholders command ( #201 )
...
* fix parsing placeholders on ecloud placeholders command
* try catch on registering expansions
Co-authored-by: aBo0oDyy <35378106+aBo0oDyy@users.noreply.github.com>
2020-04-09 11:43:21 -04:00
WCKDAWE
0666ac7b01
Minor spelling mistakes ( #284 )
...
Not a grammar nazi, just noticed them and though to commit dem changes.
2020-04-09 11:37:48 -04:00
Andre_601
2caf5f0232
Add missing setPlaceholder methods ( #234 )
...
* Add missing setPlaceholder methods
Also includes setBracketPlaceholders and setRelationPlaceholders
* Update PlaceholderAPI.java
2020-04-09 11:37:06 -04:00