Commit Graph

26 Commits

Author SHA1 Message Date
Aikar 8da50b0b0d Current work on removing some SetMultimap - Broken atm
Seems to be breaking things and mutating state undesirably for help system?

Not sure whats going on yet
2018-03-31 14:09:31 -04:00
Mariell 11dcee8b39 Use MethodHandles for invocation (#112)
* Use method handles for invocation

* Fix parsing, add more safety and add for named MessageChannels, and format

* Add methodhandle support to BaseCommand
2018-03-24 10:59:43 -04:00
Aikar 8335d580f6 Improvements to help formatter 2018-03-21 22:02:48 -04:00
Aikar 633c6278b5 Ignore command issuer for context resolution in completions 2018-03-18 01:11:25 -04:00
Aikar d8017789d6 Refactor all annotation lookups in prep for processors 2018-03-17 12:31:05 -04:00
Aikar 2d0995a3ac Refactor how parameter annotations are parsed to prep for processors
this also will improve performance, as we will only do flag parsing and replacements
once on register instead of every execution for some things.
2018-03-15 23:22:18 -04:00
Aikar 8be2d4f9c2 fix JDA default command 2018-03-08 22:12:45 -05:00
games647 edf7ecc020 Add support for per issuer locale in Sponge and BungeeCord (#104)
* Add support for per issuer locale in Sponge and BungeeCord

* Added Optional<UUID> getUniqueId to CommandIssuer
* Added update task and delayed join listener in BungeeCord
* Added settings change listener in Sponge
* Moved setLocale method up to the CommandManager to remove the
amount of duplicated code

* Remove Optional usage

* Remove player terminology in core
2018-02-28 17:53:27 -05:00
Aikar 9acd2df4a2 Clean up JDA to use an options object builder instead of ctor builder
safer for future additions, so we don't have to change the signature of JDA ctor
2018-02-14 23:36:39 -05:00
Jeremy Wood d9b532de11 Properly handle multi-character command prefixes. (#95) 2018-01-26 01:07:02 -05:00
Jeremy Wood afc7f801b2 Improvements for JDA command prefixes. (#94) 2018-01-25 18:28:02 -05:00
Jeremy Wood 03d3d8b0e9 Added common message channel conditions. (#92) 2018-01-25 17:53:16 -05:00
Jeremy Wood 23e8858c67 Improvements for JDA implementation. (#91)
* Added owneronly condition for JDA.

* Fixed command registration for JDA.

* Removed extraneous event handling.

* Initialize bot owner on ReadyEvent.
2018-01-24 16:57:17 -05:00
Jeremy Wood 9aaf990ddb Added owneronly condition for JDA. (#88) 2018-01-24 15:20:50 -05:00
Aikar 42a6b112de constructor for jda can stay public for child classes 2018-01-23 00:48:53 -05:00
Aikar c3089d61c7 misc changes for jda 2018-01-23 00:47:19 -05:00
Aikar 7f590a76b2 Add permission resolver, fix many bugs, move to a builder style constructor 2018-01-23 00:42:21 -05:00
Aikar f1197dcdfc oops missed replacement 2018-01-23 00:31:28 -05:00
Aikar afd116982d use an interface for CommandConfig
so you can bind the interface to your own config state objects
2018-01-23 00:30:45 -05:00
Aikar 65ca960882 Use getter/setters for config so people can override it to bridge configs 2018-01-22 23:49:43 -05:00
Aikar bdfed57936 Setup Command Config object and allow providing alternate configs 2018-01-22 23:31:34 -05:00
Aikar d06fa55211 provide a better User context for JDA 2018-01-22 22:27:13 -05:00
Aikar 85d266b667 Smurf name the JDACommandEvent 2018-01-22 22:21:53 -05:00
Aikar ba6cf9a87c add getEvent for more clear getter 2018-01-22 22:20:25 -05:00
Aikar 46ee14e4a3 provide some contexts for JDA 2018-01-22 22:18:17 -05:00
Aikar 8667970216 Add JDA Implementation - untested - not ready yet!
Hoping @dumptruckman can finish this up
2018-01-22 22:03:22 -05:00