Commit Graph

24 Commits

Author SHA1 Message Date
Aikar f2e96ea244 Start of I18N work 2017-06-26 23:03:18 -04:00
Aikar 3a4ebe2d45 MC Timing upgrade, fix timing integrations, add parent timing 2017-06-24 01:23:22 -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 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 1455dd4951 get rid of BaseSubcommand and establish parent tree 2017-06-08 00:07:53 -04:00
Aikar 7bf24e9c13 Almost done with modular work 2017-06-03 00:11:43 -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 e79912299f add some more example 2017-05-20 12:22:56 -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 2e0c034224 Move core code into a core folder in prep for bukkit extraction 2017-05-17 00:45:18 -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 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 3a1b1264a1 Update MC timings for new class name 2017-05-02 22:38:09 -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 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 25d726e113 Change group/artifact id and bump to 0.3.0-SNAPSHOT 2017-04-21 23:14:53 -04:00
Aikar a9009457ec Fix example plugin 2017-04-21 18:34:46 -04:00
Aikar ee95ad9286 remove dep reduced pom accidentally commited 2017-04-21 02:21:17 -04:00
Aikar 887c79e602 add compiler args to example plugin 2017-04-21 02:05:11 -04:00
Aikar 8bb172ee26 Misc cleanup 2017-04-21 01:42:00 -04:00
Aikar ac10ff2bf4 add relocation to example plugin 2017-04-21 01:28:34 -04:00
Aikar c0a29c4691 Add an example plugin 2017-04-21 01:12:15 -04:00