mirror of
https://github.com/aikar/commands.git
synced 2026-07-01 02:38:26 +00:00
Added multiple conditions sections
@@ -15,6 +15,11 @@ to enforce creative restrictions.
|
||||
|
||||
Or say you wanted to put a restriction that commands must be ran during day time, you might add `@Conditions("daytime")`
|
||||
|
||||
# Multiple conditions in one annotation
|
||||
|
||||
To use multiple conditions simply split them with "|"
|
||||
e.g. `@Conditions("daytime|creative")`
|
||||
|
||||
# Registering your own conditions
|
||||
Example:
|
||||
```java
|
||||
|
||||
Reference in New Issue
Block a user