Commit Graph

757 Commits

Author SHA1 Message Date
Intybyte ae9a93f23a Hide the hours wasted crying 2025-10-14 11:58:40 +02:00
Intybyte 459ef7b5bb Fix command completions 2025-10-14 11:58:14 +02:00
Intybyte e895cbefe4 How did I even miss this 2025-10-12 21:04:02 +02:00
chickeneer bd7d26a015 Merge pull request #436 from Trynocs/master
Update acf-core_de.properties
2025-07-15 10:43:29 -05:00
trynocs 1930d73e11 Update acf-core_de.properties
Fix German localization typos: corrected all instances of "must" to "musst" for proper grammar in error messages.
2025-07-15 01:53:57 +02:00
chickeneer c9b808ec49 Merge pull request #432 from benwoo1110/feat/consumes-rest
Implement `@ConsumesRest` annotation
2025-04-12 17:27:20 -05:00
chickeneer 85829acc41 Merge pull request #429 from benwoo1110/feat/recursive-annotations
Add support for getting annotation from parent class/method/parameter
2025-04-12 17:27:08 -05:00
chickeneer 5a5a31c483 Rename method to getAnnotationFromParentParameters to match other methods 2025-04-12 17:26:50 -05:00
Ben Woo 3bd89c6902 Make LogLevel enum public to allow overriding of log method in CommandManager (#433) 2025-04-12 10:34:03 -05:00
chickeneer 2d1fe63b6f Merge pull request #430 from benwoo1110/feat/openbukkitrootcommand
Open BukkitRootCommand implementations for extension
2025-04-12 10:33:36 -05:00
chickeneer 51ec341fb9 Merge pull request #421 from Intybyte/update/sponge-8-fix
Update/sponge 8 fix
2025-04-12 10:14:05 -05:00
chickeneer ddb827e5b2 Rework subclass unusable constructor logging #428
Users should only need to know information about unusable constructors
if the subclass subcommand doesn't successfully register.
Theory being that the constructor could exist for other purposes
2025-04-12 10:09:44 -05:00
chickeneer b434783ae1 Merge pull request #428 from benwoo1110/fix/subclass
Fix instantiate subclass if constructor parameter is the command's type
2025-04-12 10:04:40 -05:00
chickeneer b1b050b87b Merge pull request #426 from Intybyte/fix/method-handle
Use MethodHandle API
2025-04-12 09:26:21 -05:00
chickeneer a2cf22892c Improve MethodHandle API PR for ACFBukkitLocalesListener 2025-04-12 09:25:20 -05:00
Ben Woo 94815618d1 Implement @ConsumesRest annotation 2025-04-09 13:36:50 +08:00
Ben Woo 254164bc49 Open BukkitRootCommand implementations for extension 2025-04-08 13:52:40 +08:00
Ben Woo e3c16dc16d Add support for getting annotation from parent class/method/parameter 2025-04-06 17:10:17 +08:00
Ben Woo 8cc4aa0115 Fix instantiate subclass if constructor parameter is the command's type 2025-04-06 11:50:00 +08:00
Intybyte 11fd673a6e Use MethodHandle API 2025-03-26 15:11:53 +01:00
chickeneer 5efec647c5 Fix issue with 1.8 paper having a different named method when locale changes 2025-03-25 16:13:53 -05:00
Intybyte 056d595ddf Add @NotNull annotations, restore and deprecate old constructors, only store Locale. 2025-03-24 15:30:49 +01:00
chickeneer 2b2e81c5ae During setPlayerLocale store the LocaleString
Without this change, we have to manually put this value on each
call to setPlayerLocale.
2025-03-23 20:15:35 -05:00
Ben Woo 89575e67bd Use PlayerLocaleChangeEvent instead of repeating task when available (#423) 2025-03-23 20:11:27 -05:00
trynocs 2b6abf9e69 Update acf-core_de.properties (#425)
* Update acf-core_de.properties

Changed acf-core.please_specify_at_least from:
Error: Bitte gib eine Zahl größer oder gleich {min} ein.

To:
Fehler: Bitte gib eine Zahl größer oder gleich {min} ein.

* Update acf-core_de.properties

Changed acf-core.please_specify_at_least so it matches the other messages from:
Error: Bitte gib eine Zahl größer oder gleich {min} ein.

To:
Fehler: Bitte gib eine Zahl größer oder gleich {min} ein.
2025-03-23 19:27:33 -05:00
Intybyte d55253c669 Remove unused constructor + extra check 2025-03-04 18:27:24 +01:00
Intybyte eecbe69d96 Merge branch 'refs/heads/master' into update/sponge-8-fix
# Conflicts:
#	core/src/main/java/co/aikar/commands/CommandManager.java
2025-03-04 18:19:31 +01:00
Intybyte c057b14f6c Composition over inheritance for looser coupling 2025-03-04 18:15:11 +01:00
chickeneer 8631777bd1 Don't blindly return input argument as a completion value #417
This is attempting to prevent the input being fed back in
as a completion value when it shouldn't. An empty collection
should be equivalent to completing to the input.
2025-02-22 13:02:44 -06:00
chickeneer 229ca53d99 Fix an issue with CommandManager#usePerIssuerLocale(false)
It was not effectively disabled in the Bukkit module.
This should fix that issue
2025-02-22 11:28:28 -06:00
chickeneer 6629dc2f46 Add support for both AND and OR permission checking 2025-02-22 11:12:38 -06:00
Vaan1310 25e692eb50 Feature/pipe or permissions (#418)
* Add pipe OR handling for permissions
2025-02-22 10:28:34 -06:00
Intybyte 0e5e662c1a Unnecessary trim 2025-02-08 16:21:07 +01:00
Intybyte 5dad9e0c54 Add pipe OR handling for permissions 2025-02-08 16:19:47 +01:00
chickeneer 1d285db1aa Allow extension of module specific context classes
I am uncertain whether this is an api feature we want
to 'advertise', but I do not see a compelling reason
we need to block extending the classes.
2025-01-28 19:01:41 -06:00
Jeremy Wood d2d8833b9d Open CommandIssuer implementations for extension. (#416) 2025-01-28 18:55:16 -06:00
chickeneer 3e830097ba Remove irc reference regarding support and contributing 2024-12-13 18:23:42 -06:00
chickeneer 623048b763 Add a JDA 5 module
Eventually will drop the JDA 4 module - but it still functions so no
reason to arbitrarily upgrade it or drop without bumping acf version
2024-12-13 18:11:04 -06:00
Vaan1310 43323e656a Add updated sponge module, sponge 10 (#411) 2024-10-31 18:10:09 -05:00
mohammed Alteneiji aff3e6a8c7 fix Velocity root command not checking for permissions correctly (#406) 2024-05-04 13:35:52 -05:00
chickeneer 8f9c0d141b Fix locale reading for non-paper bukkit for 1.20.2+ #405 2024-01-25 07:13:04 -06:00
chickeneer 26d72f27c6 Use the player locale api instead of reflection to fix issues #402 2023-10-02 16:25:35 -05:00
chickeneer d22fae6bfa Remove save actions intellij plugin 2023-10-01 21:48:00 -05:00
chickeneer 651a558a68 Try to fix readPlayerLocale from 1.20.2 #402 2023-10-01 21:41:16 -05:00
Alien0-7 461090c1c8 Italian translation (#398)
* Italian translation

Italian translation

* add italian translation
2023-08-02 11:19:10 -05:00
chickeneer b50215e2fa Move all scheduler initialization to BukkitCommandManager #394
The create Locale task is happening DURING object construction so initializing the scheduler in the
PaperCommandManager initialization step is too late due to the bukkit/paper modules extending.
This should fix the issues
2023-06-26 18:11:01 -05:00
chickeneer 6a259126a5 Let's not use reflection for scheduler detection 2023-06-26 16:55:22 -05:00
chickeneer 8c56e992a6 Improve AsyncScheduler detection #394
Since paper now has the AsyncScheduler, we can add detection for the AsyncScheduler to Paper itself instead of Folia specifically
2023-06-26 16:24:21 -05:00
chickeneer e41896bf2f Update javadocs 2023-04-02 16:51:48 -05:00
Christopher Nethercott fa29b4de22 Add deregister ability to completions and contexts (#364)
* feat: add deregister methods to completions and dependencies

* fix: change unregister to deregister

* feat: add javadocs to deregisterCompleition

* fix: add throws to javadocs for dependency methods

* fix: missing negation thanks @JOO200

* fix: change deregister -> unregister

* Fix missed rename of deregister to unregister

---------

Co-authored-by: chickeneer <emcchickeneer@gmail.com>
2023-04-02 16:47:44 -05:00