chickeneer
24b7e5168c
put the command completion check in the correct place.
2017-06-07 16:30:25 -05:00
chickeneer
e254cbc2b3
Do not complete commands for which a player does not have permission
2017-06-07 16:21:45 -05:00
chickeneer
60892d566e
Temporary fix for lack of permission errors on commands
2017-06-07 15:56:58 -05:00
chickeneer
f3dbb795c9
Forwarding commands should testPermission of its BaseCommand
2017-06-07 15:50:57 -05:00
kashike
96a3a3c57d
Death to ACFLog ( #42 )
2017-06-06 19:03:01 -04:00
kashike
cd892fccd4
Start of Sponge support ( #41 )
2017-06-05 11:25:00 -04:00
Aikar
99a89b2826
Fix completions
2017-06-03 00:48:08 -04:00
Aikar
3c6d5bbe63
more stuff
2017-06-03 00:31:39 -04:00
Aikar
7bf24e9c13
Almost done with modular work
2017-06-03 00:11:43 -04:00
MiniDigger
9e3698018c
Update link to minecraft timings ( #40 )
2017-05-31 18:09:27 -04:00
Aikar
0bf2621a91
Merge branch 'master' into modular
...
* master:
Warn if you register replacements after commands
add some more example
Fix Command Replacements not being applied correctly to aliases - fixes #37
2017-05-20 12:29:04 -04:00
Aikar
e2132fef84
Warn if you register replacements after commands
2017-05-20 12:27:59 -04:00
Aikar
e79912299f
add some more example
2017-05-20 12:22:56 -04:00
Aikar
c253dcaed7
Fix Command Replacements not being applied correctly to aliases - fixes #37
2017-05-20 11:47:54 -04:00
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