-
Notifications
You must be signed in to change notification settings - Fork 10
Conditions
AxDevv edited this page Dec 9, 2025
·
1 revision
Conditions allow you to restrict when actions can be performed or rewards can be claimed. UniverseJobs supports 7 condition types.
| Type | Description |
|---|---|
permission |
Check if player has a permission |
world |
Check if player is in a specific world |
biome |
Check if player is in a specific biome |
time |
Check in-game time |
weather |
Check weather conditions |
placeholder |
Check PlaceholderAPI values |
item |
Check item in player's hand |
Conditions are added to actions using the requirements property:
actions:
break:
- target: DIAMOND_ORE
xp: 50
money: 10
requirements:
world: "world"
permission: "jobs.mining.diamond"Check if the player has a specific permission:
requirements:
permission: "universejobs.premium"Restrict actions to specific worlds:
requirements:
world: "world"Multiple worlds (OR logic):
requirements:
world:
- "world"
- "world_nether"Restrict actions to specific biomes:
requirements:
biome: "DESERT"Restrict actions based on in-game time (0-24000 ticks):
requirements:
time:
from: 0 # Sunrise (6:00 AM)
to: 12000 # Sunset (6:00 PM)| Time | Ticks | Description |
|---|---|---|
| 6:00 AM | 0 | Sunrise |
| 12:00 PM | 6000 | Noon |
| 6:00 PM | 12000 | Sunset |
| 12:00 AM | 18000 | Midnight |
Restrict actions based on weather:
requirements:
weather: "RAIN"Values: CLEAR, RAIN, THUNDER
Use PlaceholderAPI to create complex conditions:
requirements:
placeholder: "%player_level% >= 10"Operators: >, <, >=, <=, ==, !=
Check the item in the player's hand:
requirements:
item: "DIAMOND_PICKAXE"For custom items:
requirements:
nexo-id: "custom_pickaxe"
# or
itemsadder-id: "namespace:custom_pickaxe"All conditions in requirements use AND logic by default.
Use any wrapper for OR logic:
requirements:
any:
- world: "world"
- world: "world_nether"