Aikar
0317fd5dfc
Updated JavaDocs
2018-01-10 19:45:59 -05:00
Aikar
9f7eb9bcf5
Condition handlers wasnt meant to return boolean.
...
Sorry if anyone wrote one already, remove the return type please.
Really don't want to bump version when very low chance anyones using
this system yet.
2018-01-10 19:44:26 -05:00
Aikar
813272fe39
Updated JavaDocs
2018-01-08 23:34:43 -05:00
Aikar
40eaa9ea07
Command Conditions and MANY other code changes for Generics <3 🌮
...
This completes and fully enables a new feature called "Conditions"
We already had some forms of conditions built into @Flags such as
on the Player for itemheld.
However, letting end users add additional restrictions to existing context
handlers such as players is not possible without redefining the context.
That's not friendly nor scalable.
Flags will now be primarily only for controlling how to resolve a context,
and then Conditions will then be the way to validate the context and trigger
a failure if the condition is not met.
Conditions can be placed on Command Class, Methods, or individual Parameters.
2018-01-08 23:30:27 -05:00
Aikar
01f47211bb
update readme
2018-01-08 19:16:56 -05:00
Daniel Ennis
3781046746
Update LICENSE
2018-01-06 13:09:34 -05:00
Hex
ae52acf6ed
Fix typo (parseAndValudateNumber). ( #83 )
2018-01-06 12:08:43 -05:00
Aikar
607374bdfb
Updated JavaDocs
2018-01-05 20:50:58 -05:00
Aikar
bfc8534176
Validate that input does not exceed max values for numbers
2018-01-05 20:38:33 -05:00
Aikar
45dcc43d14
Support for Primitive parameter types
2018-01-05 20:07:46 -05:00
Aikar
f591117733
Support looking up offline players
2018-01-05 19:51:15 -05:00
Aikar
a1c9382251
Allow using Bukkit Player in place of OnlinePlayer
...
requires @Flags("other") is set
and also supports @Flags("other,defaultself") to target self if not supplied
2018-01-05 19:38:22 -05:00
Aikar
22bc3f4754
Updated JavaDocs
2018-01-03 18:45:00 -05:00
Aikar
faa1df0309
Fix setFormat(MEssageType, FT) index - Resolves #82
2018-01-03 18:43:58 -05:00
Aikar
2057ed8a42
More work on Command Conditions #58
2017-12-17 13:46:22 -05:00
Aikar
9ef0ac6e5e
Current progress on Conditions, not done yet - #58
2017-12-13 23:12:31 -05:00
Aikar
2ac98ba448
Updated JavaDocs
2017-12-13 22:33:01 -05:00
Aikar
52c95c3ee6
Unwrap Exception Handler receiving InvocationTargetException
2017-12-13 21:55:49 -05:00
Mariell
b8744215d6
Fix typo of "occurred". ( #81 )
...
Sorry for any inconvenience which may have occurred due to this error.
2017-12-10 14:39:57 -05:00
Mariell
90a8527cd2
Fix typo of "inconvenience" ( #80 )
...
Sorry for the inconvenience of this typographical error.
2017-12-10 14:35:48 -05:00
Aikar
d38006640d
Updated JavaDocs
2017-12-09 13:42:41 -05:00
Aikar
77631767a7
Fix multiple default/unkown handlers being registered
2017-12-09 13:40:39 -05:00
Aikar
df656196a9
Fix async completions bug in latest change
2017-12-09 13:40:25 -05:00
Aikar
e8a1a6bd52
Update javadocs
2017-12-09 13:03:23 -05:00
Aikar
d23588b046
Bukkit/Paper: expose .getPlayer() to completion/execution context
2017-12-09 13:01:39 -05:00
Aikar
e1dd2e7613
recreate completions if the list was set to immutable
...
Need to fix this at paper level too
2017-12-09 12:53:04 -05:00
Aikar
305a7835ce
fix trying to add to immutable collection for paper async completions
2017-12-06 23:05:18 -05:00
Aikar
9ec8bc1da7
Updated JavaDocs
2017-12-02 21:20:00 -05:00
Aikar
abe66948db
Fix multi class sub command tab completion for Paper Async Handler
2017-12-02 21:19:10 -05:00
Aikar
5e90fab7d0
Don't run async tab completions until a space exists
2017-12-02 20:20:49 -05:00
Aikar
a239f336a1
Updated JavaDocs
2017-12-02 00:00:21 -05:00
Aikar
fe1be188a4
Allow @Default to work on classes bound to a @Subcommand
...
```java
@CommandAlias("foo")
@Subcommand("bar")
class FooBarCommand {
@Default
public void onFooBar(CommandIssuer issuer) {}
}
```
Will now pass `/foo bar` to onFooBar.
Previously this required @Subcommand("") which was unintuitive
2017-12-01 23:56:26 -05:00
Aikar
7798c37ee0
Updated JavaDocs
2017-11-30 01:31:54 -05:00
Aikar
fbed6f2be3
Add Support for Async Tab Completions for Paper Servers
...
This adds the ability for plugins to define completion handlers as async safe (not on games main thread)
When they are defined async safe, and ran on a Paper 1.12.2+ server, with a Paper ACF manager,
completions will be handled mostly async, letting you safely do heavier operations in tab completions.
2017-11-30 01:18:43 -05:00
Aikar
229192f99c
Updated JavaDocs
2017-11-25 22:08:08 -05:00
Aikar
8251b81a94
Fix Plugin Logger on Bukkit/Paper (not sure whats wrong with plugin.getLogger())
2017-11-25 22:07:23 -05:00
Aikar
001dd406aa
Updated JavaDocs
2017-11-25 20:50:56 -05:00
Aikar
b032c677b8
require opting into per-issuer locale
2017-11-25 20:50:19 -05:00
Aikar
1f11d8be33
Keep protected javadocs
2017-11-25 19:44:36 -05:00
Aikar
8eafa3f54a
Updated JavaDocs
2017-11-25 19:44:35 -05:00
Aikar
e782d901d8
Updated JavaDocs
2017-11-25 19:40:56 -05:00
Aikar
ab95e524a0
Update javadocs to only generate on deploy, add deploy script
2017-11-25 19:40:04 -05:00
Aikar
c48576a4d7
Updated JavaDocs
2017-11-25 19:39:51 -05:00
Aikar
e8c05cc39b
Fix Cast to player issue for Bukkit
2017-11-25 19:17:33 -05:00
Aikar
59012dc6c0
more doc updates
2017-11-24 13:06:43 -05:00
Aikar
036166b551
Update javadocs
2017-11-24 13:05:57 -05:00
Aikar
adfb4b11a1
Add support for Per Player Locale on Bukkit - Resolves #62
2017-11-24 13:05:20 -05:00
Aikar
1915ebf00e
check the scope of commands for permissions too and rename to getRequiredPermissions
2017-11-22 22:54:02 -05:00
Aikar
1e85b9bf42
update javadocs
2017-11-22 22:41:16 -05:00
Aikar
70571a4a0a
new API for multi permissions on RegisteredCommand
2017-11-22 22:41:07 -05:00