-
Notifications
You must be signed in to change notification settings - Fork 0
Conditions and Executors
Draww edited this page Mar 16, 2019
·
9 revisions
With conditions and executors you will be able to completely control the rank jump process. How much money the player has, how much item has. you'il be able to run conditions like that and you can do things you want to do after rank has been raised, like sending messages, giving items.
conditions:
example_cond:
queue: 1
type: MONEY
message: "&cYou don't have enough money [&e%value%&c]" #<--- the value "%value%" comes from below.
data:
value: 1500.00
conditions:
example_cond:
queue: 1
type: EXP
message: "&cYou don't have enough exp [&e%value%&c]" #<--- the value "%value%" comes from below.
data:
value: 5
conditions:
example_cond:
queue: 1
type: HAS_ITEM
message: "&cYou don't have %item.amount% %item.material%" #<--- the values "%item.amount%" and "%item.material%" comes from below.
data:
item:
material: APPLE
amount: 3
executors:
example_exec:
queue: 1
type: MESSAGE
data:
value: "&aRank Up! &6%rank_group%" #<--- Rank placeholders: "%rank%", "%rank_group%"
executors:
example_exec:
queue: 1
type: ACTIONBAR_MESSAGE
data:
value: "&aRank Up! &6%rank_group%" #<--- Rank placeholders: "%rank%", "%rank_group%"
executors:
example_exec:
queue: 1
type: BROADCAST_MESSAGE
data:
value: "&aRank Up! &6%player_name% &8(&e%rank_group%&8)" #<--- Rank placeholders: "%rank%", "%rank_group%"
executors:
example_exec:
queue: 1
type: BROADCAST_ACTIONBAR_MESSAGE
data:
value: "&aRank Up! &6%player_name% &8(&e%rank_group%&8)" #<--- Rank placeholders: "%rank%", "%rank_group%"
executors:
example_exec:
queue: 1
type: WITHDRAW_MONEY
data:
value: 500.00
executors:
example_exec:
queue: 1
type: DEPOSIT_MONEY
data:
value: 500.00
executors:
example_exec:
queue: 1
type: CONSOLE_COMMAND
data:
value: "say rankup"
executors:
example_exec:
queue: 1
type: PLAYER_COMMAND
data:
value: "examplecmd"
executors:
example_exec:
queue: 1
type: SOUND
data:
value: BLOCK_ANVIL_BREAK
executors:
example_exec:
queue: 1
type: TELEPORT
data:
value: World;165;25;237
executors:
example_exec:
queue: 1
type: GIVE_ITEM
data:
item:
material: DIAMOND_BLOCK
amount: 3
executors:
example_exec:
queue: 1
type: REMOVE_ITEM
data:
item:
material: APPLE
amount: 3