Aikar
c2a58a471f
Refactor everything to a modular format - WIP
...
This does not compile
Almost done with core !!!
2017-05-20 11:32:41 -04:00
Aikar
798a1d57c9
Ensure unique command alias/subcommand pairs
...
I may of accidently added the same command alias twice and triggered errors...
2017-05-19 22:54:34 -04:00
Aikar
1b370b3bd9
Fix root commands on 2nd+ classes - Fixes #36
2017-05-17 23:18:26 -04:00
Aikar
2e0c034224
Move core code into a core folder in prep for bukkit extraction
2017-05-17 00:45:18 -04:00
Aikar
c070f76b98
Add initial support for 1.12 NamespacedKey - Resolves #34
...
We can't do completion for this really since every key is technically valid, and a list of
MC "Registered" keys are not available.
2017-05-17 00:29:41 -04:00
Aikar
3329c42e57
rename to requiredResolvers
2017-05-16 23:52:49 -04:00
chickeneer
d6df28043d
Allow multiple optional type resolvers on the tail-end of commands ( #35 )
2017-05-16 23:51:45 -04:00
Aikar
276183ec04
Fix every command being registered as default - Fixes #31
2017-05-15 22:35:48 -04:00
Aikar
39af64ad25
Use the correct class for knownFields lookup - Fixes #25
2017-05-15 21:25:43 -04:00
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