Commit Graph

595 Commits

Author SHA1 Message Date
chickeneer 8a5bdeea86 Merge pull request #227 from MrIvanPlays/bg-language
Changes to some of the bulgarian translations
2019-08-17 01:11:55 -05:00
Artyom Popov b05a6195f0 More improvements in Russian translation (#213) 2019-08-17 01:11:11 -05:00
chickeneer 586afc6193 Set locale field to be accessible - GH-234 2019-08-14 11:11:24 -05:00
chickeneer ec4816fe1b Fix Index out of bound error in completions for no parameter commands 2019-08-06 21:28:47 -05:00
MrIvanPlays 6dff5e12de Changes to some of the bulgarian translations 2019-07-24 10:17:50 +03:00
chickeneer 91e7b9d39b Eliminate all length requirements for username lengths GH-226 2019-07-22 18:33:16 -05:00
chickeneer 4b9bab652e Reduce required length of player names GH-226 2019-07-22 17:59:26 -05:00
JOO200 d17055eb99 Use getter for command conditions (#225) 2019-07-08 17:16:18 -05:00
egg82 96e5414b12 Updated Velocity to latest (#216)
* Updated Velocity to latest

Kyori text is the only breaking change, here.

* Updated Velocity scope
2019-06-21 19:41:15 -04:00
chickeneer 625171b206 Fix an infinite loop issue on server shutdown
Related to GH-215
2019-06-17 16:09:47 -05:00
Niklas Eicker b175f092d8 resolves #214 (#215) 2019-06-07 01:25:08 -05:00
chickeneer 7292c50f4a Do not filter out valid completion arguments
Fixes a bug introduced by PR 200. The bug related to the Values annotation which uses this getCompletionValues method also.

This is definitely not the propersolution. The underlying issue is
related to the logic calling `args` which is the original argument
array. And it should not be using arguments which have been resolved in
a previous parameter.
I was not able to find a quick/simple way to accommodate that issue.
2019-06-05 11:20:10 -05:00
JanTuck 4880a02371 Fix memory leak in unregister command (#208)
Fixes #198
2019-04-15 10:15:58 -04:00
Aikar 7893ebd198 (DEPLOYED ACF) Updated JavaDocs 2019-04-07 09:46:30 -04:00
MrIvanPlays 280e2f0da3 Make InvalidCommandArgument a runtime exception 2019-04-03 08:08:49 +03:00
Aikar 8a7157865c (DEPLOYED ACF) Updated JavaDocs 2019-04-01 17:39:00 -04:00
Aikar 4cc8d5a9e8 Fix help page count 2019-04-01 17:38:23 -04:00
Aikar 4aef08f587 also check for null 2019-03-31 18:57:44 -04:00
Aikar 1be6a0b3cb check for null 2019-03-31 18:56:29 -04:00
Aikar 18eba457ab (DEPLOYED ACF) Updated JavaDocs 2019-03-31 13:01:29 -04:00
JOO200 7583dc8810 Add support for CompletableFuture exception. (#206)
This PR adds support for exceptions in CompletableFuture in Commands.

Usage: Just return a CompletableFuture. ACF will catch the exceptionally stuff.
```java
public CompletableFuture<Void> futuredExecution(Player player) {
    return CompletableFuture.failedFuture(new InvalidCommandArgument("Failed in future.", false));
}
```
2019-03-31 13:00:24 -04:00
MrIvanPlays 3416c2e7ad Add bulgarian language (#204) 2019-03-28 13:26:04 -04:00
Aikar 73ceec7b59 (DEPLOYED ACF) Updated JavaDocs 2019-03-26 18:01:04 -04:00
Aikar 07d5fa671c Fix some bugs with RegisteredCommand 2019-03-26 17:58:02 -04:00
Aikar 8f58676213 (DEPLOYED ACF) Updated JavaDocs 2019-03-24 10:25:14 -04:00
JOO200 72d45739c9 Add support for multi word tab completion (#200)
I added support for multi word tab completion.

Current problem:
the replacement "example" contains completions with whitespaces
```java
@CommandCompletion("@example")
public void test(Player player, String takesTheRest) {...}
```
"takesTheRest" takes all the whole rest howewer the tab completion only supports one word.

I don't use the ACFUtils much and maybe there are some ugly checks, feel free to refactor.
2019-03-24 09:43:43 -04:00
Aikar 63e7ed6287 Try to work around travis CA Cert issue by force updating it 2019-03-23 12:33:38 -04:00
Aikar b3823ac2f0 Let's try oracle jdk since travis has issues with openjdk 2019-03-23 12:24:10 -04:00
Aikar 8b3f4d077e Update Travis JDK versions 2019-03-23 12:05:07 -04:00
Jeremy Wood 1c056cea45 Added basic JUnit5 testing framework. (#202) 2019-03-23 12:01:49 -04:00
Aikar 2577fe1844 (DEPLOYED ACF) Updated JavaDocs 2019-03-15 19:25:54 -04:00
Aikar 5a35fa25fc Handle future use of computePermissions to recalculate all children
Not used atm but while its fresh on mind....
2019-03-15 19:24:47 -04:00
Aikar 42867fe194 compute BaseCommand permissions before RegisteredCommands
Need to be computed for inheritance
2019-03-15 19:18:47 -04:00
Aikar 4e9fce55dd (DEPLOYED ACF) Updated JavaDocs 2019-03-15 01:49:10 -04:00
Aikar a0c4cd7a50 Register ACF help system into bukkit 2019-03-15 01:48:24 -04:00
Aikar 5e1565ab7d (DEPLOYED ACF) Updated JavaDocs 2019-03-14 23:19:06 -04:00
Aikar 9c1521a456 Implement Bukkit Description for /help 2019-03-14 23:18:41 -04:00
Aikar e9857cb8b3 Adjust default parameter help output 2019-03-14 23:07:37 -04:00
Aikar 655ab0b110 (DEPLOYED ACF) Updated JavaDocs 2019-03-14 22:43:33 -04:00
Aikar f6a8c68d80 Add Logger and FileConfiguration as default bukkit dependencies 2019-03-14 22:37:51 -04:00
Aikar 4e103adca4 Add Proper support for Default Completion Handlers 2019-03-14 22:34:56 -04:00
Aikar aa2e6ad1f8 Don't repeat last command completion unless its prefixed repeat 2019-03-12 21:52:50 -04:00
Aikar 23dd046b8e Improve parameter permissions and fix RC permission check 2019-03-09 11:27:58 -05:00
Kévin Jimenez d2754b99c9 Add support for CommandPermission annotation as parameter for permiss… (#197)
…ions by Optional annotation

In the past we could not handle a permission in relation to the presence of an optional argument, it forced us to manage it in the body of the command, and could be repetitive and boring, note that it also works with the annotation Default
2019-03-09 11:03:04 -05:00
Aikar d7477cb732 (DEPLOYED ACF) Updated JavaDocs 2019-03-03 11:12:51 -05:00
Aikar ced74bc5d3 Support private methods too on local class.
we stil inherit public methods as previous
2019-03-03 11:11:58 -05:00
Aikar 2d09149f2e (DEPLOYED ACF) Updated JavaDocs 2019-02-27 19:21:57 -05:00
JOO200 7670224d81 Set default help page to one. (#196)
Fix for empty helps with CommandManager#generateCommandHelp()
2019-02-27 17:40:15 -05:00
Aikar 57d541562d (DEPLOYED ACF) Updated JavaDocs 2019-02-25 23:01:03 -05:00
Aikar 1b799355c5 fix command completions for aliases too 2019-02-25 23:00:31 -05:00