SHARE
TWEET

Untitled

a guest Apr 19th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Crates Plugin, still need index arg and obviously commands where you cant take any stuff out
  2.  
  3. command /crates [<text>] [<text>]:
  4.     permission: Crates.*
  5.     trigger:
  6.         if arg 1 is not set:
  7.             message "&7&m]-------- &8» &dLiquidCrates &8«&7&m--------["
  8.            
  9.             message "&d/Crate help &8*&7 Open Help Page"
  10.             message "&d/Crate key <name> &8*&7 Gives you the Key"
  11.            
  12.             message "&d/Crate list &8*&7 Tells you all Crates"
  13.             message "&d/Crate create <name> &8*&7 Create a Crate"
  14.             message "&d/Crate delete <name> &8*&7 Delete A Crate"
  15.                    
  16.             message "&d/Crate chest <name> &8*&7 Gives you the Chest (Place it)"
  17.             message "&d/Crate tp <name> &8*&7 Teleports you to the Crate"
  18.             message "&d/Crate index <name> &8*&7 Open a Gui where you can add items to the Crate"
  19.  
  20.  
  21.             message "&7&m]-------- &8» &dLiquidCrates &8«&7&m--------["  
  22.         if arg 1 is not "key" or "list" or "create" or "delete" or "chest" or "tp" or "index":
  23.             message "&7&m]-------- &8» &dLiquidCrates &8«&7&m--------["
  24.            
  25.             message "&d/Crate help &8*&7 Open Help Page"
  26.             message "&d/Crate key <name> &8*&7 Gives you the Key"
  27.            
  28.             message "&d/Crate list &8*&7 Tells you all Crates"
  29.             message "&d/Crate create <name> &8*&7 Create a Crate"
  30.             message "&d/Crate delete <name> &8*&7 Delete A Crate"
  31.                    
  32.             message "&d/Crate chest <name> &8*&7 Gives you the Chest (Place it)"
  33.             message "&d/Crate tp <name> &8*&7 Teleports you to the Crate"
  34.             message "&d/Crate index <name> &8*&7 Open a Gui where you can add items to the Crate"
  35.  
  36.  
  37.             message "&7&m]-------- &8» &dLiquidCrates &8«&7&m--------["          
  38.         if arg 1 is "key":
  39.             if arg 2 is set:
  40.                 if {Crates.Exist.%arg 2%} is true:
  41.                     give player 1 131 named "&a%arg 2% &7Key"
  42.                     message "&7[&dCrates&7] &7You got a %arg 2% crate key."
  43.                 else:
  44.                     message "&7[&dCrates&7] &cError:&7 The Crate does not exist."
  45.             else:
  46.                 message "&7[&dCrates&7] &cError:&7 Need a Crate. &f(/Crate create <name>)"         
  47.         if arg 1 is "crate":
  48.             if arg 2 is set:
  49.                 if {Crates.Exist.%arg 2%} is true:
  50.                     give player 1 chest named "&a%arg 2%" with lore "&7Crate Chest"
  51.                     message "&7[&dCrates&7] &7You recieved the %arg 2% crate chest."
  52.                 else:
  53.                     message "&7[&dCrates&7] &cError:&7 That crate does not exist."
  54.             else:
  55.                 message "&7[&dCrates&7] &cError:&7 Need a Crate. &f(/Crate create <name>)"             
  56.         if arg 1 is "create":
  57.             if arg 2 is set:
  58.                 if {Crates.Exist.%arg 2%} is true:
  59.                     message "&7[&dCrates&7] &cError:&7 You already created this crate!"
  60.                 else:
  61.                     set {Crates.Exist.%arg 2%} to true
  62.                     add arg 2 to {Crates.Lsit::*}
  63.                     message "&7[&dCrates&7] &7The Crate &a%arg 2%&7 was created."
  64.             else:
  65.                 message "&7[&dCrates&7] &cError:&7 Need a Crate. &f(/Crate create <name>)"
  66.         if arg 1 is "delete":
  67.             if arg 2 is set:
  68.                 if {Crates.Exist.%arg 2%} is true:
  69.                     set {Crates.Exist.%arg 2%} to false
  70.                     clear {Crates.Exist.%arg 2%}
  71.                     delete {Crates.Exist.%arg 2%}
  72.                     remove arg 2 from {Crates.Lsit::*}
  73.                     message "&7[&dCrates&7] &7The Crate &a%arg 2%&7 was deleted."
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top