Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # MFG's Skript to make breakable sign homes
- #
- #
- on sign edit:
- first line is "[HOME]"
- second line is blank:
- set line 1 to "CANCELLED"
- set line 2 to "MAKE SURE TO"
- set line 3 to "ADD A HOME-NAME"
- set line 4 to "ON LINE 2"
- stop
- if player has permission "homes.count.1":
- if {homes.%player%::*} is more than 0:
- message "<yellow>You alrady have a home, you are only authorized <gold>ONE <yellow>home!" to player
- set line 1 to "CANCELLED"
- set line 2 to "YOU CAN ONLY"
- set line 3 to "HAVE ONE"
- set line 4 to "HOME!!!!"
- stop
- if player has permission "homes.count.3":
- if {homes.%player%::*} is more than 2:
- message "<yellow>You alrady have <gold>three <yellow>homes, you are only authorized <gold>THREE <yellow>homes!" to player
- set line 1 to "CANCELLED"
- set line 2 to "YOU CAN ONLY"
- set line 3 to "HAVE THREE"
- set line 4 to "HOMES!!!!"
- stop
- if {homes.%player%::%line 2%} is set:
- message "HEY! Remember each home of your's has to have a unique name!" to player
- set line 1 to "CANCELLED"
- set line 2 to "YOU HOME NAMES"
- set line 3 to "HAVE TO BE"
- set line 4 to "UNIQUE"
- stop
- # Rest of the code, the checks are done!
- set {homes.%player%::%line 2%} to true
- set {homes.location.%player%::%line 2%} to the block's location
- set {homes.sign.%player%::%line 2%} to block
Advertisement
Add Comment
Please, Sign In to add comment