Commit Graph

108 Commits

Author SHA1 Message Date
Aikar 72e052d953 Finish up the pagination of the help system 2017-10-28 13:36:39 -04:00
Aikar a02d761e5e Set bukkit usage/description data 2017-10-28 12:21:35 -04:00
Aikar c165ca2c36 pagination on help progress 2017-10-09 21:09:43 -04:00
Aikar 9159b3fbb0 Fix typo in separator 2017-10-09 19:11:01 -04:00
Aikar f1423dc3bf support old no args = default logic 2017-09-28 23:09:07 -04:00
Aikar a9f203b5ef Unknown Handlers should have priority over default.
Both conflict with each other to support parameters on @Default
2017-09-28 22:51:24 -04:00
Aikar 052a5d26dc use ExpiringMap for Pattern Cache 2017-08-24 22:45:12 -04:00
Aikar 34642136f5 Only register Unknown/Default for HelpCommand if not already set 2017-08-24 01:21:50 -04:00
Aikar dcbdf0b594 Support context on @Default! Hooray!!!!
@Subcommand("list") @Default
public void onFoo(CommandSender sender, @Default("1") Integer page) {}

type stuff will now work with /cmd list 2 and /cmd 2
2017-08-24 01:17:16 -04:00
Aikar 851b50053b Add @HelpCommand shortcut annotation 2017-08-24 00:41:00 -04:00
Aikar ab192c9e34 Current work on command searching for help, see image
http://i.imgur.com/HQ6nmvF.png

@Default
@Subcommand("help")
@UnknownHandler
public void doHelp(CommandSender sender, CommandHelp help) {
     help.showHelp();
}
2017-08-23 23:54:59 -04:00
Aikar 0746f97ee1 Fix registering subcommands that are also @UnknownHandlers 2017-08-23 23:02:20 -04:00
Marek Šipoš ebb4fd6644 add czech translation (#67)
* Update CommandManager.java (#3)

* Create acf-core_cs.properties (#2)

* Create acf-minecraft_cs.properties (#1)
2017-08-23 20:37:12 -04:00
Aikar b2b7b18cb1 Remove the .iml files to make kashike happy. 2017-08-23 20:23:51 -04:00
Aikar 11dcf57113 Work on the help system to start work on pagination and search 2017-08-23 19:16:45 -04:00
Aikar 287924d434 Fix CoMoEx in loadMissingBundles 2017-08-15 20:22:07 -04:00
Aikar 43a06e9006 Mark the Help system as unstable 2017-08-08 23:43:59 -04:00
Aikar 278e91a76b add Unstable API stuff 2017-08-08 23:41:25 -04:00
Aikar 75579fe649 more fixes, formatting, expand control over format, fix dupe 2017-08-08 22:08:05 -04:00
Aikar 3cdd47942d things are working now 2017-08-08 21:17:56 -04:00
Aikar 05323ea8f8 Get things back compiling 2017-08-08 21:05:42 -04:00
Aikar 57a41c7540 Current progress on updating the help PR 2017-08-08 20:30:40 -04:00
Aikar 88a170cb58 Merge branch 'feature/help' of https://github.com/mrkirby153/commands into mrkirby153-feature/help
* 'feature/help' of https://github.com/mrkirby153/commands:
  Generify help generation
  Rework how help is generated
  First revision of help system
  Wire up command descriptions
2017-08-08 19:37:45 -04:00
Aikar 2306418c83 add Exception to the name 2017-08-02 23:33:57 -04:00
Aikar 5711497ef8 Make kashike happy 2017-08-02 23:33:09 -04:00
Aikar 4e6fa422c8 rework Locale refs to provide our own common table of locales 2017-07-25 01:11:02 -04:00
MiniDigger fefd35804b add german translations (#65) 2017-07-24 23:57:04 -05:00
Frank Kusmiruk 414594d136 Adding spanish translations (#66) 2017-07-24 23:53:51 -05:00
Aikar 95ef58ce87 add set default locale 2017-07-25 00:42:28 -04:00
Aikar 00d3837fd0 Fix another empty args issue for @Values and context 2017-07-24 22:55:28 -04:00
Aikar 3065dfbc1a Support including the auto generated syntax in @Syntax overrides 2017-07-18 23:09:09 -04:00
mrkirby153 5be72c40e2 Generify help generation 2017-07-18 19:41:45 -07:00
Aikar 1f7a412783 process {@@i18n.strings} in all command replacements 2017-07-18 22:35:45 -04:00
Aikar f3b8b6034e Fix getCurrentCommandOperationContext() peek exception 2017-07-18 22:35:16 -04:00
Aikar ebe7cbd2c0 process command replacements in messages 2017-07-18 21:54:56 -04:00
Aikar ef3b844ffa Move MessageFormatter stuff to base class using generics, readd default formatter G/S 2017-07-18 21:52:42 -04:00
Aikar 418bbd6fd9 Use generics on manager to understand impl types
Slight risk of API breakage but risk is minimal enough that I'm not bumping versions.

0.5.0 Migration guide suggested (Platform)CommandManager, which will set the generics for you.
Only if you stored the ref as the Abstract CommandManager would you now run into generic issues.

Also, cleaned up the sendMessage API's to not need Object now since we know the Generic type.

This is technically an API break, but considering Locales was only released last night and
the likelyhood someone overrode that method, is unlikey.

If you did, just fix the method signature! Sorry <3
2017-07-18 21:43:32 -04:00
mrkirby153 1d5b0f086d Rework how help is generated 2017-07-18 15:57:51 -07:00
mrkirby153 fd61e67974 First revision of help system 2017-07-18 11:25:56 -07:00
mrkirby153 38bf98db73 Merge branch 'master' into feature/help 2017-07-18 10:38:13 -07:00
Aikar d24ae03b12 fix the format API's and add setFormat(type, i, color) 2017-07-18 08:31:35 -04:00
Aikar b0ae0209c9 Load languages post locales construction 2017-07-18 00:11:13 -04:00
Aikar b4539aa1ed Open the Locales API! 2017-07-17 23:59:50 -04:00
Aikar 9ee590026f add setFormat API's 2017-07-17 23:57:04 -04:00
Aikar eec47ea701 add set/get format API 2017-07-17 23:44:33 -04:00
Aikar 1813dbe83c support a default formatter 2017-07-17 23:42:37 -04:00
Aikar e82b5ef9bd Refactor supported languages and move MessageKeyProvider to co.a.locales 2017-07-17 23:25:30 -04:00
Aikar 668fa650ba add some bukkit API's for loading YAML Locale 2017-07-17 23:02:14 -04:00
Aikar 4963db24b7 Update for the latest locales signature changes 2017-07-17 22:34:11 -04:00
mrkirby153 9d4aa771ea Wire up command descriptions 2017-07-17 18:54:17 -07:00