Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Crates Plugin.
  2.  
  3.  
  4. command /crate [<text>] [<text>]:
  5.     permission: crates.*
  6.     trigger:
  7.         if arg-1 is not "help" or "key" or "list" or "create" or "delete" or "crate" or "tp" or "index":
  8.             send "&7[&dCrates&7] Please use one of the listed commands from &r/crate help&7."
  9.         if arg-1 is not set:
  10.             message "&7&m]-------- &8» &dLiquidCrates &8«&7&m--------["
  11.            
  12.             message "&b/Crate help &8*&7 Open Help Page"
  13.             message "&b/Crate key <name> &8*&7 Gives you the Key"
  14.            
  15.             message "&b/Crate list &8*&7 Tells you all Crates"
  16.             message "&b/Crate create <name> &8*&7 Create a Crates"
  17.             message "&b/Crate delete <name> &8*&7 Delete A Crates"
  18.                    
  19.             message "&b/Crate crate <name> &8*&7 Gives you the Chest (Place it)"
  20.             message "&b/Crate tp <name> &8*&7 Teleport you to the Crates"
  21.             message "&b/Crate index <name> &8*&7 Open a Gui where you can add Items to the Crates"
  22.  
  23.  
  24.             message "&7&m]-------- &8» &dLiquidCrates &8«&7&m--------["  
  25.         if arg-1 is "help":
  26.             message "&7&m]-------- &8» &dLiquidCrates &8«&7&m--------["
  27.            
  28.             message "&b/Crate help &8*&7 Open Help Page"
  29.             message "&b/Crate key <name> &8*&7 Gives you the Key"
  30.            
  31.             message "&b/Crate list &8*&7 Tells you all Crates"
  32.             message "&b/Crate create <name> &8*&7 Create a Crates"
  33.             message "&b/Crate delete <name> &8*&7 Delete A Crates"
  34.                    
  35.             message "&b/Crate crate <name> &8*&7 Gives you the Chest (Place it)"
  36.             message "&b/Crate tp <name> &8*&7 Teleport you to the Crates"
  37.             message "&b/Crate index <name> &8*&7 Open a Gui where you can add Items to the Crates"
  38.  
  39.  
  40.             message "&7&m]-------- &8» &dLiquidCrates &8«&7&m--------["
  41.         if arg-1 is "create":
  42.             if arg-2 is set:
  43.                 if {Crates.Exist.%arg 2%} is true:
  44.                     send "&7[&dCrates&7] &cError: &7That crate does not exist." to player
  45.                 else:
  46.                     set {Crates.Exist.%arg 2%} to true
  47.                     add arg 2 to {Crates.List::*}
  48.                     send "&7[&dCrates&7] &7The Crate &a%arg 2%&7 was created." to player
  49.             else:
  50.                 send "&7[&dCrates&7] &cError:&7 Need a Crate. &f(/Crates create <name>)" to player
  51.         if arg 1 is "chest":
  52.             if arg 2 is set:
  53.                 if {Crates.Exist.%arg 2%} is true:
  54.                     give player 1 chest named arg-2 with lore "&7Crates Chest (Place Me)"
  55.                     send "&7[&dCrates&7] &7You recieved the &a%arg 2% &7Crate."
  56.                 else:
  57.                     send "&7[&dCrates&7] &cError:&7 The crate does not exist." to player
  58.             else:
  59.                 send "&8[&bCrates&8] &cError:&7 Need a Crate. &f(/Crates create <name>)" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement