Commit Graph

242 Commits

Author SHA1 Message Date
Aikar 15accea47b Add Contributors file 2017-06-17 20:54:41 -04:00
Aikar 7b6726523e Add CHANGELOG, update readme for 0.5.0 release 2017-06-17 20:07:11 -04:00
MiniDigger eb84340f46 Add custom Exception Handlers (#43)
* Add the ability to register exception handlers to handle exceptions that occur while executing a command

* you saw nothing

* add ability to cancel default error message

* per command exception handler

* add a getter for the default exception handler
2017-06-15 10:25:25 -04:00
Aikar 24066faabd Process unknown command completions - fixes #44 2017-06-14 22:42:04 -04:00
Aikar 15b149d55c Big Break: Change the Command Completion Handler signature to match Context
For consistency, make Completion Handlers be implemented the same way Context Handlers are.

Previously when we added the Context parameter, we left the original signature in place and simply tacked , c on the end.

This made migration easier than changing all completion handlers bodies.

But since 0.5.0 is a big migration already, let's just get it over with.

See changes to Bukkit default completions and the example plugin for migration example.
2017-06-14 22:17:33 -04:00
Aikar 14a1c33926 add Bungee to project metadata 2017-06-14 22:09:08 -04:00
Aikar 43c4089a98 Fix other things about bungee pom 2017-06-14 22:07:59 -04:00
William Braecky 13c284cb9d Fix for issue #46 (#47)
* Change scope of bungeecord dependency
2017-06-14 22:03:21 -04:00
William Braecky 036818deb9 Add ACF-Bungee (#45)
* Add acf-bungee

* Forgot to add bungee to the parent's pom

* Remove "created by " headers
2017-06-13 20:50:03 -04:00
Aikar 1ad3eac962 remove unnecessary permission check
cmd.hasPermission calls that now
2017-06-08 00:28:41 -04:00
Aikar a11a8e00e2 check parent commands permission - Fixes #30 2017-06-08 00:25:43 -04:00
Aikar 1455dd4951 get rid of BaseSubcommand and establish parent tree 2017-06-08 00:07:53 -04:00
Aikar aef49466f1 move hasPermission to manager 2017-06-07 23:55:32 -04:00
Aikar bd19a78ec1 rename testPermission to hasPermission 2017-06-07 23:51:42 -04:00
Aikar 5d3678b1b1 also check RegisterCommand for Permission on completions 2017-06-07 23:51:03 -04:00
Aikar 93221e7832 fix sponge perm check 2017-06-07 23:50:34 -04:00
Aikar 9aaf1b3cb8 set bukkit permission node 2017-06-07 23:47:56 -04:00
Aikar 64c04e5944 clean up permission checking 2017-06-07 23:46:33 -04:00
Aikar c7dfe4eeb3 Add sponge files 2017-06-07 23:38:37 -04:00
Aikar 20cf20509f Merge branch 'master' into modular
* master:
  Backport permission fix from 0.5.0
  Update link to minecraft timings (#40)
2017-06-07 23:38:01 -04:00
Aikar f2a5285fe0 Backport permission fix from 0.5.0 2017-06-07 22:58:26 -04:00
chickeneer c4c66b30a0 Forgot the ! - fixes breaking command completion 2017-06-07 16:33:05 -05:00
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