Conditions
RocketJoin’s conditions system allows you to create custom join and leave messages for specific players based on various criteria. This system is similar to the RocketPlaceholders conditions system.Overview
Conditions let you customize messages for players who meet specific requirements, such as:- Having a certain permission
- Joining for the first time
- Meeting custom criteria
How Conditions Work
Conditions are evaluated in order, and the first matching condition will be used. This allows you to create priority-based message systems.Configuration Example
Here’s a basic example of how to configure conditions:Available Condition Types
RocketJoin supports the following condition types:Permission Condition
Check if a player has a specific permission node. Type:PERMISSIONRequires: Value (permission node) See the Permission Condition guide for details.
First Join Condition
Trigger when a player joins for the first time. Type:FIRSTRequires: No value needed See the First Join Condition guide for details.
Condition Options
Each condition can have the following options:Messages
join- Custom join message for players matching this conditionleave- Custom leave message for players matching this condition
Sound Effects
sound- Enable or disable sound effects (true/false)sound-type- The sound to play. See the Bukkit Sound enum for available sounds.
Common sound types include:
entity.experience_orb.pickup- Experience orb pickup soundentity.player.levelup- Level up soundblock.note_block.pling- Note block plingui.toast.challenge_complete- Challenge complete sound
Fireworks
fireworks- Enable or disable fireworks (true/false)fireworks-amount- Number of fireworks to spawn
Commands
commands- List of commands to execute from console when a player matching this condition joins. Use{player}placeholder in commands.
Priority System
Conditions are evaluated in the order they appear in the configuration file. The first matching condition will be used, so order matters! Example:rocketjoin.vip and rocketjoin.premium permissions, they will see the VIP message because it’s listed first.
Advanced Examples
Multiple Conditions
You can create complex condition setups:Condition with Commands
Execute commands when specific players join:Related Guides
- Permission Condition - Detailed permission condition guide
- First Join Condition - First join condition guide
- Configuration - General configuration guide