Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Server: noname
- Prefix: &9&l[&bSG&9&l]<r>
- variables:
- {fr.chest.x} = 1000000
- {fr.chest.y} = 200
- {fr.chest.z} = 1000000
- command /chest [<text>]:
- permission: sg.admin
- permission message: &6You don't have required permission to do this.
- trigger:
- if arg 1 is not set:
- if {fr.%player%.chest} is not set:
- set block at the location ({fr.chest.x}, {fr.chest.y}, {fr.chest.z}) to chest
- set block at the location ({fr.chest.x}+1, {fr.chest.y}, {fr.chest.z}) to chest
- set {fr.%player%.chest} to location of block at the location ({fr.chest.x}, {fr.chest.y}, {fr.chest.z})
- if {fr.chest.x} is less than 1000300:
- add 3 to {fr.chest.x}
- else:
- set {fr.chest.x} to 1000300
- if {fr.chest.z} is less than 1000300:
- add 2 to {fr.chest.z}
- else:
- set {fr.chest.z} to 1000000
- add 1 to {fr.chest.y}
- open the inventory of the block at {fr.%player%.chest} to the player
- else:
- open the inventory of the block at {fr.%player%.chest} to the player
- else:
- if player has permission "fr.chest.admin":
- if {fr.%arg 1%.chest} is set:
- open the inventory of the block at {fr.%arg 1%.chest} to the player
- else:
- set block at the location ({fr.chest.x}, {fr.chest.y}, {fr.chest.z}) to chest
- set block at the location ({fr.chest.x}+1, {fr.chest.y}, {fr.chest.z}) to chest
- set {fr.%arg 1%.chest} to location of block at the location ({fr.chest.x}, {fr.chest.y}, {fr.chest.z})
- if {fr.chest.x} is less than 1000300:
- add 3 to {fr.chest.x}
- else:
- set {fr.chest.x} to 1000300
- if {fr.chest.z} is less than 1000300:
- add 2 to {fr.chest.z}
- else:
- set {fr.chest.z} to 1000000
- add 1 to {fr.chest.y}
- open the inventory of the block at {fr.%arg 1%.chest} to the player
- else:
- send "&6You don't have required permission to do this."
- on left click:
- if {{@Server}.sg.spec.%player%} is true:
- cancel event
- on right click:
- if {{@Server}.sg.spec.%player%} is true:
- if player is holding a barrier named "&cLeave Survival Games":
- make player execute command "/sg spec"
- wait 3 ticks
- cancel event
- if player is holding a skull named "&6Teleport to Players":
- clear {{@Server}.sg::tpgui::*}
- wait 1 tick
- loop all players:
- if loop-player is "%{{@Server}.sg.joined::%loop-player%}%":
- add loop-player to {{@Server}.sg::tpgui::*}
- wait 1 tick
- open chest with 3 rows named "&aTeleportation GUI"
- set {_size} to the size of {{@Server}.sg::tpgui::*}
- set {_slot} to 0
- loop {{@Server}.sg::tpgui::*}:
- set {_sgperson} to loop-value
- format slot {_slot} of player with skull of {_sgperson} named "&6%{_sgperson}%" with lore "&a&oAlive" to be unstealable
- add 1 to {_slot}
Add Comment
Please, Sign In to add comment