Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on sign edit:
- if line 1 of event-block is "sign":
- if player have permission "Sign.Free":
- set line 1 of event-block to "&6&lFreeSign"
- set line 2 of event-block to "&7%line 2%"
- set {_line3} to "%line 3%"
- replace all ":" with "&7:&f" in {_line3}
- set line 3 of event-block to "&c%colored {_line3}%"
- if line 4 is not "":
- set line 4 of event-block to "&7« &b%colored line 4% &7»"
- else:
- set line 4 of event-block to ""
- command /nr [<offlineplayer>] [<item>]:
- trigger:
- if command sender is console or "ni" or "iTzAntii:
- set {%offlineplayer-argument%.Sign-I} to item-argument
- on rightclick:
- if line 1 of clicked block is "&6&lFreeSign":
- play "CHEST_OPEN" to player
- open chest with 1 rows named "Free" to player
- wait a tick
- set {%player%.Sign-I} to "%uncolored line 2 of clicked block% %uncolored line 3 of clicked block%"
- set {%player%.Sign-N} to "%colored line 4 of clicked block%"
- replace all "" with "" in {%player%.Sign-N}
- replace all "" with "" in {%player%.Sign-N}
- execute server command "nr %player% %{%player%.Sign-I}%"
- if line 0 of clicked block is not set:
- format slot 0 of player with {%player%.Sign-I} to be unstealable
- else:
- format slot 0 of player with {%player%.Sign-I} named "%{%player%.Sign-N}%" to be unstealable
- unformat slot 0 of player
- wait 0.1 seconds
- play "ITEM_PICKUP" to player
- if line 2 of clicked block is not set:
- format slot 2 of player with {%player%.Sign-I} to be unstealable
- else:
- format slot 2 of player with {%player%.Sign-I} named "%{%player%.Sign-N}%" to be unstealable
- unformat slot 2 of player
- wait 0.1 seconds
- play "ITEM_PICKUP" to player
- if line 4 of clicked block is not set:
- format slot 4 of player with {%player%.Sign-I} to be unstealable
- else:
- format slot 4 of player with {%player%.Sign-I} named "%{%player%.Sign-N}%" to be unstealable
- unformat slot 4 of player
- wait 0.1 seconds
- play "ITEM_PICKUP" to player
- if line 6 of clicked block is not set:
- format slot 6 of player with {%player%.Sign-I} to be unstealable
- else:
- format slot 6 of player with {%player%.Sign-I} named "%{%player%.Sign-N}%" to be unstealable
- unformat slot 6 of player
- wait 0.1 seconds
- play "ITEM_PICKUP" to player
- if line 8 of clicked block is not set:
- format slot 8 of player with {%player%.Sign-I} to be unstealable
- else:
- format slot 8 of player with {%player%.Sign-I} named "%{%player%.Sign-N}%" to be unstealable
- unformat slot 8 of player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement