Commit Graph

648 Commits

Author SHA1 Message Date
Edson Passos f033dd9541 Adds a new pattern for CommandReplacements: %{<key>} (#313) 2021-02-05 12:19:57 -05:00
Edson Passos 91e720011e Unwraps InvocationTargetException (#315)
This exception is just a wrapper for the one thrown on invoked methods
2021-02-04 17:28:36 -05:00
Stijn Bannink 3dfee40c57 Add Dutch translation (#304)
Co-authored-by: DarkEyeDragon <joshua.tack@student.vives.be>
2021-01-26 13:16:46 -05:00
Szymon Witek 6099e6455f Add link to acf-jda docs (#301) 2021-01-26 13:15:39 -05:00
JOO200 20aee6a59e exception check for CompletionStage instead of CompletableFuture (#309) 2021-01-26 13:15:18 -05:00
JOO200 a28e0f5ce2 Optimize OfflinePlayer context (#306)
* Only allow valid usernames in OfflinePlayer context resolver

* optimize OfflinePlayer context resolver
2021-01-26 13:14:44 -05:00
Edson Passos 6c632eb028 Adds missing messages to acf-core_es (#299) 2020-11-02 13:45:50 -05:00
Aikar 3f2f786fa4 (DEPLOYED ACF) Updated JavaDocs 2020-09-25 15:53:10 -04:00
JOO200 9c5e9fbcdd Fix NPE for plugins without special log prefix (#294) 2020-09-25 15:53:05 -04:00
Aikar 85ea761654 (DEPLOYED ACF) Updated JavaDocs 2020-09-24 23:14:07 -04:00
Glare b5cb67fcb3 Updated JDA support 4.2 (#270)
Anyone previously using jda3 and needs to stay on it until transition is complete to jda4
switch the following artifacts in your build to the final jda3 builds

acf-core -> acf-corejda3final  0.5.0-SNAPSHOT
acf-jda -> acf-da3final  0.5.0-SNAPSHOT
2020-09-24 23:13:09 -04:00
Aikar 00618f051b (DEPLOYED ACF) Updated JavaDocs 2020-09-24 23:03:06 -04:00
Jake Potrebic fd25a31c63 Fix Bukkit log prefix for custom prefixes (#237) 2020-09-24 22:39:09 -04:00
Hannes Greule e164852783 Allow properly nesting of messages (#262)
- Messages can now be defined everywhere instead of second-level only
- The data types double, int, long and boolean are supported
2020-09-24 22:35:03 -04:00
JOO200 46f689de94 Add name annotation for parameters (#272)
Co-authored-by: Daniel Ennis <aikar@aikar.co>
2020-09-24 22:19:37 -04:00
William Braeckman a26babd6d8 Fix issue #288 (#289) 2020-09-24 22:00:33 -04:00
JOO200 65428e3cae Fix wrong BungeeCord command suggestions (#292) 2020-09-24 21:59:41 -04:00
MiniDigger 9452873d13 Add initial brigadier support (implements #77) (#153)
Co-authored-by: Aikar <aikar@aikar.co>
2020-08-13 20:40:06 -04:00
Frank van der Heijden a8b69370ae Add ability to force command registrations on velocity (#285) 2020-08-13 20:38:04 -04:00
JOO200 9a04899978 Fix CommandCompletionContext.getResolvedArg (#266) 2020-08-13 18:36:54 -04:00
Dragonium 9188892e3b Fixed the typo(?) from SomeCommand.Test.TestInner#onTest1 (#281) 2020-08-13 18:36:25 -04:00
JOO200 97cd56cb93 Bugfix @Values: Completion with null value will create a NPE (#282) 2020-08-13 18:35:58 -04:00
Daniel Ennis 4813a2aee9 Create FUNDING.yml 2020-07-21 20:28:04 -04:00
JOO200 be0af2d781 Fix encodings for japanese language (#269) 2020-06-09 22:07:51 -04:00
Frank van der Heijden 7044d189b6 Implement PluginIdentifiableCommand in BukkitRootCommand (#271) 2020-06-09 22:07:33 -04:00
Aikar f4ed76d257 (DEPLOYED ACF) Updated JavaDocs 2020-06-02 03:04:06 -04:00
JOO200 b931f6ea7b Changed encoding to utf8 (#267) 2020-06-02 03:03:08 -04:00
ken_kentan 843c2a92f4 Added japanese language (#265) 2020-05-16 23:16:36 -04:00
Aikar d284bff469 (DEPLOYED ACF) Updated JavaDocs 2020-04-27 05:40:17 -04:00
Alexander Söderberg 33bd355ae4 Fixes and updates acf-core_sv.properties (#260) 2020-04-27 05:39:18 -04:00
Aikar bf9b81bf0e Clean up JavaDocs (Deployed ACF)
No longer generate the zip files in git and use proper doclint flag
Speeds up javadoc generation fixing a bug in config
2020-04-26 18:38:49 -04:00
Aikar 1eddc2cb8b Clean up build scripts and rework shading/relocation
ACF deps such as timings lib and expiring map will now properly
be relocated into ACF.

This will avoid version conflicts with ExpiringMap and TimingsLib

Sadly, because locales is an exposed API, we can not relocate locales...

It will still be on plugins to add the locales relocation themselves.
Will update wiki to document this.

also updated maven plugins to newest versions, minus surefire, as
3.0 doesn't work with current setup. Went to latest 2.x there.

Got rid of a lot of duplicated shade configuration stuff across
submodules too.
2020-04-26 17:43:08 -04:00
Aikar 9a9c366dfe (DEPLOYED ACF) Updated JavaDocs 2020-04-18 18:43:43 -04:00
JOO200 81dc6e267b Don't allow infinite recursive annotations (#258) 2020-04-18 18:41:22 -04:00
Aikar 5d6892dbd4 (DEPLOYED ACF) Updated JavaDocs 2020-04-17 23:02:45 -04:00
Aikar f9743d0ba4 Fix building javadocs on jdk11+ 2020-04-17 23:01:20 -04:00
Aikar 737694b71e Add missing locale imports to velocity 2020-04-12 13:45:26 -04:00
Aikar 9e8c694eb4 Update JDA to latest 3.x release before we go to 4 2020-04-12 13:35:22 -04:00
Omer Oreg 0b717ba9c0 Made ShowCommandHelp constructors public
This makes it so you can throw the exception from outside the package.
2020-04-12 13:21:44 -04:00
nirewen 26b35b8309 Add Portuguese translations 2020-04-12 13:20:09 -04:00
portlek 3a3734730c turkish language support 2020-04-12 13:19:35 -04:00
Hasan Demirtaş 5953e6a99e toLowerCase method with Locale.ENGLISH parameter.
Fixes #255
2020-04-12 13:19:35 -04:00
William 'psyFi' Hatcher e2a1c454e5 Fixed typo
Sorry, it just really bugged me.
2020-04-06 10:36:53 -04:00
Tim Hagemann 2ba6895e0c Specifically ignore annotations in java package for meta-annotations
There's no world in which a java annotation contains one of the
command annotations and may only lead to infinite recursion.
2020-04-06 10:36:31 -04:00
Tim Hagemann 667dfec904 Support simple meta-annotations
This adds basic support for meta-annotations for commands and
parameters and allows users to create their own custom annotations
combining certain existing annotations and values. For example, a user
 can now define their own `CustomAnnotation` which combines a
condition and a flag:

```java
@Conditions("conditionname:confitionconfig")
@Flags("flagconfig=flagvalue")
public @interface CustomAnnotation {}
```
(Necessary `@Retention` and `@Target` ignore for brevity)
And use it just like they would normally.

This works by recursively going through the annotations, instead of
just looking at the root level. The reason most existing annotations
had to be touched is for them to be allowed on other annotations as
most of them were restricted to method or fields.

Currently there's no limit on nesting because if the user wants to
nest it to obscure levels - so be it. We could decide to limit this at
 some point to prevent users from shooting themselves in the foot if
that's necessary.

`@Dependency` and was specifically ignored as I don't think it makes
sense for that to be supported in this use case.

Relates to: #89
2020-04-06 10:36:31 -04:00
JOO200 eb7064f7c4 Exception handling: Handle CompletionException like ExecutionException 2020-04-06 10:34:49 -04:00
Aikar f2f37a3954 (DEPLOYED ACF) Updated JavaDocs 2019-11-17 11:29:08 -05:00
Joo200 34a60b920a Fix wrong output for default context resolver for numbers. 2019-11-17 11:27:43 -05:00
Franklin Mathieu 3701822f04 i18n,fr: fix garbled diacritics. (#240)
I suspect e9857cb8 changed encoding for the file and messed up
diacritics.

Also fixed a slight typo on acf-core.help_no_results.
2019-09-04 17:30:33 -05:00
Glare ab53b7b4e5 Added in loading from YAML files to bungee (#238) 2019-08-19 07:31:53 -05:00