Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every 5 minutes in world "ul_Prison":
- broadcast "&e(Mines) &7Mines have been reset." to world "ul_Prison"
- make console execute "/mrl reset A -s"
- make console execute "/mrl reset A1 -s"
- make console execute "/mrl reset A2 -s"
- make console execute "/mrl reset B -s"
- make console execute "/mrl reset B1 -s"
- make console execute "/mrl reset B2 -s"
- make console execute "/mrl reset C -s"
- make console execute "/mrl reset C1 -s"
- make console execute "/mrl reset C2 -s"
- make console execute "/mrl reset D -s"
- make console execute "/mrl reset D1 -s"
- make console execute "/mrl reset D2 -s"
- on break:
- if player is in world "ul_Prison":
- if event-block is stone:
- give player 1 stone
- # Selling #
- options:
- coalore: 2 # Prices
- ironore: 3 # Prices
- stone: 1 # Prices
- command /sell [<player>]:
- permission: sell.use
- permission message: &e(!) Purchase a rank to use the command
- trigger:
- if arg 1 is set:
- if arg 1 is in world "ul_Prison":
- if amount of coal ore in arg 1's inventory is less than 1:
- if amount of stone in arg 1's inventory is less than 1:
- if amount of iron ore in arg 1's inventory is less than 1:
- send "&e(Sell) &7Please mine some blocks before trying to sell" to arg 1
- stop
- set {_stone} to number of stone in arg 1's inventory
- set {_coalore} to number of coal ore in arg 1's inventory
- set {_value1} to {@stone} * {_stone}
- set {_value2} to {@coalore} * {_coalore}
- set {_money1} to {_stone}
- set {_money2} to {_coalore}
- set {blocks} to {_value2} + {_value1}
- set {_money} to {_money2} + {_money1}
- remove all stone and coal ore and iron ore from arg 1's inventory
- add {_money} to {prisonmoney::%arg 1%}
- set action bar of arg 1 to "&eSold &fx%{_money}% &eblocks for &f$%{blocks}% &ewith (* 0 Booster)"
- stop
- if arg 1 is not set:
- if player is in world "ul_Prison":
- if amount of coal ore in player's inventory is less than 1:
- if amount of stone in player's inventory is less than 1:
- if amount of iron ore in player's inventory is less than 1:
- send "&e(Sell) &7Please mine some blocks before trying to sell" to player
- stop
- set {_stone} to number of stone in player's inventory
- set {_coalore} to number of coal ore in player's inventory
- set {_value1} to {@stone} * {_stone}
- set {_value2} to {@coalore} * {_coalore}
- set {_money1} to {_stone}
- set {_money2} to {_coalore}
- set {blocks} to {_value2} + {_value1}
- set {_money} to {_money2} + {_money1}
- remove all stone and coal ore and iron ore from player's inventory
- add {_money} to {prisonmoney::%player%}
- set action bar of player to "&eSold &fx%{_money}% &eblocks for &f$%{blocks}% &ewith (* 0 Booster)"
- stop
- on rightclick on sign:
- 2nd line of clicked block is "&3[Sell All]":
- make console execute command "/sell %player%"
- set line 3 of clicked block to "&8%player%"
- variables:
- {RUP::%player%} = 1300
- {prisonmoney::%player%} = 0
- command /rankup:
- trigger:
- if player is not in world "ul_Prison":
- send "&fUnknown command. Type ""/help"" for help."
- stop
- if player is in world "ul_Prison":
- if {prisonmoney::%player%} is greater than or equal to {RUP::%player%}:
- remove 1800 from {prisonmoney::%player%}
- set {RUP::%player%} to {RUP::%player%} * 1.67
- add 1 to {prisonrank::%player%}
- send "&e(Rankup) &7You have ranked up to level &f%{prisonrank::%player%}%"
- send "&e(Rankup) &7You now need &f%{RUP::%player%}% to level up again"
- stop
- if {prisonmoney::%player%} is less than {RUP::%player%}:
- send "&e(Rankup) &7You need &f%{RUP::%player%}% &7to rankup"
- stop
Advertisement
Add Comment
Please, Sign In to add comment