Aikar
fc5de54d64
Update README
2017-05-05 23:55:46 -04:00
Aikar
9f08f16028
Add support for Command Replacements - Resolves #28
2017-05-05 23:44:32 -04:00
Aikar
80fa47685f
supper inner classes and parent up subcommand bases - Resolves #20
2017-05-05 21:57:15 -04:00
Aikar
4e801ba012
Pass on usage/desc/aliases/etc to root command
2017-05-05 20:12:04 -04:00
Aikar
6022c66f78
missed something
2017-05-05 19:50:25 -04:00
Aikar
30f6b63308
Untested, but wouldn't affect anyone who wasn't already messed up
2017-05-05 19:33:03 -04:00
Aikar
2ec1ed7c3a
Identify and warn if a plugin hijacks the command map
2017-05-05 18:50:36 -04:00
Aikar
d53ae51aa3
Move Unknown handler to Annotation - Resolves #27
2017-05-05 18:45:01 -04:00
Aikar
b0837f7735
fix a major bug with that code. looks good now
2017-05-05 00:07:48 -04:00
Aikar
a1a3c9219c
disable last warning, still got issues around it
2017-05-04 23:55:31 -04:00
Aikar
091049c43d
add a warning for subcommand conflict
2017-05-04 23:52:09 -04:00
Aikar
3cf6d8f239
fix a permission check
2017-05-04 23:43:39 -04:00
Aikar
4160e8be23
Allow multiple class files registering to same root alias - resolves #17
...
allows organizing categories of commands (staff etc)
2017-05-04 23:36:47 -04:00
Aikar
1c212311f5
update mc timings to 1.0.3 for fix a spigot issue on timings
2017-05-04 22:16:29 -04:00
Aikar
3a1b1264a1
Update MC timings for new class name
2017-05-02 22:38:09 -04:00
Aikar
d3bb35dc6a
Bump minecraft-timings to 1.0.1 to fix 1.8.8
2017-05-02 22:17:46 -04:00
Aikar
d6ff2d59a2
go back down to 0.4.0, theres no way someone was using that API
2017-05-02 22:06:44 -04:00
Aikar
e41d4e507c
v.0.5.0: Move Timings Impl to external lib, resolve Timings v2 Paper 1.8 support
...
This likely wouldn't of broke anyones code, only if they used the Timings method
in ACFUtil, but bumping just to be 'good' since it is an API break.
If you did not use the Timings in ACFUtil, then you can just bump the version
without breakages.
Timings is now handled over at https://github.com/aikar/minecraft-timings
2017-05-02 21:41:38 -04:00
Aikar
3936556e1b
Fix unregistering commands to not depend on paper and other cleanup
2017-05-01 21:54:14 -04:00
simpleauthority
0e221915c8
Unregister Commands on PluginDisableEvent ( #22 )
...
* Add CommandManager#unregisterCommand(BaseCommand), CommandManager#unregisterCommands(), and CommandManager#getCommandByAlias(String) + implementations
* Add to knownCommands upon registration
* allSuccess was not the right comparison to check
* Add a built-in listener to BukkitCommandManager to listen for plugin disable, so as to unregister commands automatically.
* Fix unregistration, because Bukkit is weird. Also ensure we iterate all the BaseCommand's Commands.
* Stop abusing AtomicBoolean, use BitSet instead!
* Switch to more standard way of checking allSuccess
* Didn't see the cool shorthand, changed
* Remove pom change
* Remove unused imports
* Unnecessary to set the first index of that array
2017-04-30 23:12:58 -04:00
Aikar
bcd3cb8367
add min/max str length flags
2017-04-30 19:19:07 -04:00
Aikar
bfd07bee94
add new multi config system for completions and add chat colors filter
2017-04-30 18:36:49 -04:00
Aikar
30f8332af0
use yellow colors
2017-04-30 17:33:13 -04:00
Aikar
b49598bf75
many fixes for color stuff
2017-04-30 17:30:37 -04:00
Aikar
b38adbd6b0
limit to colors only
2017-04-30 17:10:22 -04:00
Aikar
675dd053d9
add chat colors command completion
2017-04-30 17:07:21 -04:00
Aikar
479a5fb424
support @foo|@bar for command completions
2017-04-30 15:07:18 -04:00
Aikar
9ff6bcd9c9
support = as well as : for command completion configs
2017-04-30 11:03:19 -04:00
Aikar
0af1de6f3e
support @Optional on OnlinePlayer
2017-04-29 21:23:54 -04:00
Aikar
f127cc874f
Improve Command Completions!
2017-04-29 21:15:00 -04:00
Aikar
d6562ab1b3
misc cleanup
2017-04-29 20:44:57 -04:00
Aikar
f4c60727ca
bump version
2017-04-29 00:47:37 -04:00
Aikar
60785ec00a
some fixes with reporting of errors
2017-04-29 00:45:24 -04:00
Aikar
ae87e7440a
v0.4.0: Refactor Command Completions to look up context - API BREAK
...
Just add ", c" to your registerCompletion handler:
commandManager.getCommandCompletions().registerCompletion("test", (sender, config, input, c) -> {
});
2017-04-29 00:30:48 -04:00
Aikar
b593038a61
Use reflection to get the command map to support CraftBukkit/Spigot
...
Sadly what I thought would work, didn't.
2017-04-22 17:28:09 -04:00
Aikar
1341f291ce
update readme
2017-04-21 23:16:04 -04:00
Aikar
25d726e113
Change group/artifact id and bump to 0.3.0-SNAPSHOT
2017-04-21 23:14:53 -04:00
Aikar
55ffa1da38
rename command.seevanish to acf.seevanish - fixes #15
2017-04-21 23:10:50 -04:00
Aikar
4ac62d4065
Rename stuff to ACF and expose util- Fixes #14
2017-04-21 23:10:04 -04:00
Aikar
ea14d121d5
Use reflection to set name if setName doesnt exists, Fixes #16
2017-04-21 21:00:17 -04:00
Aikar
9793c7e8ae
make itemheld flag support older MC versions
2017-04-21 20:34:53 -04:00
Aikar
536c6a874e
reduce visibility of original input fields, expose as getters
2017-04-21 20:09:34 -04:00
Aikar
f37aaef381
fix bug with default method with params
2017-04-21 19:58:48 -04:00
Aikar
085724983e
print proper stack trace on caught exception
2017-04-21 19:33:43 -04:00
Aikar
767cf2751d
rename completionConfig > config
2017-04-21 19:21:31 -04:00
Aikar
d10d3fabf7
allow returning null for completion handlers
2017-04-21 19:11:23 -04:00
Aikar
2fb3a160de
Create Paper stubs for completions/contexts
...
This is so others can extend these, and auto get anything added in future
2017-04-21 19:03:12 -04:00
Aikar
7a862f3f67
Add some getters
2017-04-21 18:54:41 -04:00
Aikar
2e5252c72f
always return playes for @players completion
2017-04-21 18:40:08 -04:00
Aikar
a9009457ec
Fix example plugin
2017-04-21 18:34:46 -04:00