~/paste/13597
~/paste/13597
~/paste/13597

  1. *:/kits [$] = >>>
  2. die(colorize('&aYou can choose from these kits:
  3. RedstoneLamp
  4. Snow
  5. CommandBlock
  6. Furnace
  7. MelonBlock
  8. Pumpkin')) //Simple list of kits that the player can use.
  9. <<<
  10. *:/kit [$kit=''] = >>>
  11. if($kit == ''){ //Checks if a kit is specified.
  12.         die(colorize('&cUse the command like this "/kit <kitname>"')) //Kills the command if they don't specify a kit.
  13. }else{
  14.         @k = to_lower($kit) //Makes the variable shorter and easier to work with.
  15.                 if(equals(@k, 'redstonelamp')) {
  16.                         run('/kit'@k)
  17.                         die(colorize('&aYou have successfully been given kit'@k.'!'))}
  18.                 if(equals(@k, 'snow')) {
  19.                         run('/kit'@k)
  20.                         die(colorize('&aYou have successfully been given kit'@k.'!'))}
  21.                 if(equals(@k, 'commandblock')) {
  22.                         run('/kit'@k)
  23.                         die(colorize('&aYou have successfully been given kit'@k.'!'))}
  24.                 if(equals(@k, 'furnace')) {
  25.                         run('/kit'@k)
  26.                         die(colorize('&aYou have successfully been given kit'@k.'!'))}
  27.                 if(equals(@k, 'melon')) {
  28.                         run('/kit'@k)
  29.                         die(colorize('&aYou have successfully been given kit'@k.'!'))}
  30.                 if(equals(@k, 'pumpkin')) {
  31.                         run('/kit'@k)
  32.                         die(colorize('&aYou have successfully been given kit'@k.'!'))
  33.                 }else{
  34.                         die(colorize('&c'.@k 'is not a valid kit! &6See all kits by doing "/kits"'))
  35.                 }
  36.         }
  37. <<<
Language: commandhelper
Posted by WeeSkilz at 31 Mar 2014, 05:00:56 UTC