Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Crates Plugin, still need index arg and obviously commands where you cant take any stuff out
- command /crates [<text>] [<text>]:
- permission: Crates.*
- trigger:
- if arg 1 is not set:
- message "&7&m]-------- &8» &dLiquidCrates &8«&7&m--------["
- message "&d/Crate help &8*&7 Open Help Page"
- message "&d/Crate key <name> &8*&7 Gives you the Key"
- message "&d/Crate list &8*&7 Tells you all Crates"
- message "&d/Crate create <name> &8*&7 Create a Crate"
- message "&d/Crate delete <name> &8*&7 Delete A Crate"
- message "&d/Crate chest <name> &8*&7 Gives you the Chest (Place it)"
- message "&d/Crate tp <name> &8*&7 Teleports you to the Crate"
- message "&d/Crate index <name> &8*&7 Open a Gui where you can add items to the Crate"
- message "&7&m]-------- &8» &dLiquidCrates &8«&7&m--------["
- if arg 1 is not "key" or "list" or "create" or "delete" or "chest" or "tp" or "index":
- message "&7&m]-------- &8» &dLiquidCrates &8«&7&m--------["
- message "&d/Crate help &8*&7 Open Help Page"
- message "&d/Crate key <name> &8*&7 Gives you the Key"
- message "&d/Crate list &8*&7 Tells you all Crates"
- message "&d/Crate create <name> &8*&7 Create a Crate"
- message "&d/Crate delete <name> &8*&7 Delete A Crate"
- message "&d/Crate chest <name> &8*&7 Gives you the Chest (Place it)"
- message "&d/Crate tp <name> &8*&7 Teleports you to the Crate"
- message "&d/Crate index <name> &8*&7 Open a Gui where you can add items to the Crate"
- message "&7&m]-------- &8» &dLiquidCrates &8«&7&m--------["
- if arg 1 is "key":
- if arg 2 is set:
- if {Crates.Exist.%arg 2%} is true:
- give player 1 131 named "&a%arg 2% &7Key"
- message "&7[&dCrates&7] &7You got a %arg 2% crate key."
- else:
- message "&7[&dCrates&7] &cError:&7 The Crate does not exist."
- else:
- message "&7[&dCrates&7] &cError:&7 Need a Crate. &f(/Crate create <name>)"
- if arg 1 is "crate":
- if arg 2 is set:
- if {Crates.Exist.%arg 2%} is true:
- give player 1 chest named "&a%arg 2%" with lore "&7Crate Chest"
- message "&7[&dCrates&7] &7You recieved the %arg 2% crate chest."
- else:
- message "&7[&dCrates&7] &cError:&7 That crate does not exist."
- else:
- message "&7[&dCrates&7] &cError:&7 Need a Crate. &f(/Crate create <name>)"
- if arg 1 is "create":
- if arg 2 is set:
- if {Crates.Exist.%arg 2%} is true:
- message "&7[&dCrates&7] &cError:&7 You already created this crate!"
- else:
- set {Crates.Exist.%arg 2%} to true
- add arg 2 to {Crates.Lsit::*}
- message "&7[&dCrates&7] &7The Crate &a%arg 2%&7 was created."
- else:
- message "&7[&dCrates&7] &cError:&7 Need a Crate. &f(/Crate create <name>)"
- if arg 1 is "delete":
- if arg 2 is set:
- if {Crates.Exist.%arg 2%} is true:
- set {Crates.Exist.%arg 2%} to false
- clear {Crates.Exist.%arg 2%}
- delete {Crates.Exist.%arg 2%}
- remove arg 2 from {Crates.Lsit::*}
- message "&7[&dCrates&7] &7The Crate &a%arg 2%&7 was deleted."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement