nfell2009

PakourSignsPlus V1.0 - by nfell2009

Apr 10th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.94 KB | None | 0 0
  1. #Parkour Recorder Auto-Sign
  2. #THIS REQUIRES THE PARKOURMAIN TO RUN!
  3. #By nfell2009
  4.  
  5. options:
  6.     P: &8[&aPK&8]&a
  7.  
  8. command /pk-plus [<text>] [<text>]:
  9.     description: Main ParkourSignsPlus command
  10.     permission: pk.admin
  11.     trigger:
  12.         if arg 1 is not set:
  13.             message "{@P} Help Menu:"
  14.             message "{@P} /pk-plus help - This menu"
  15.             message "{@P} /pk-plus remove - Removes targeted block from being updated"
  16.             message "{@P} /pk-plus errors <off|on|status> - Settings for errors"
  17.         else if arg 1 is "remove":
  18.             remove location of targeted block from {pk.autosigns::*}
  19.             message "{@P} Removed Auto-Sign From:"
  20.             message "{@P} %location of targeted block%"
  21.         else if arg 1 is "errors":
  22.             if arg 2 is not set:
  23.                 message "{@P} What error setting would you like to see? on|off|status"
  24.             else if arg 2 is "on":
  25.                 set {pk.%player%.errors} to "On"
  26.                 message "{@P} Turned on errors!"
  27.             else if arg 2 is "off":
  28.                 set {pk.%player%.errors} to "Off"
  29.                 message "{@P} Turned off errors!"
  30.             else:
  31.                 message "{@P} Your error status is: %{pk.%player%.errors}%"
  32.         else if arg 1 is "help":
  33.             make player execute command "/pk-plus"
  34.         else:
  35.             message "{@P} Unknown command! Do /pk-plus help - for help!"
  36.        
  37. on sign change:
  38.     line 1 of block is "parkour" or "pk" or "[PARKOUR]":
  39.         player has permission "pk.admin":
  40.             if line 2 of block is "ls" or "live stat" or "live stats" or "Live Stats":
  41.                 if line 3 of block is set:
  42.                     message "{@P} Added a Live Stats Auto-Sign!"
  43.                     add location of block to {pk.autosigns::*}
  44.    
  45. every 10 seconds:
  46.     loop {pk.autosigns::*}:
  47.         if block at loop-value is sign:
  48.             if line 3 of block at loop-value is set:
  49.                 set line 4 of block at loop-value to "%{pk.1.%line 3 of block at loop-value%.player}%"
  50.         else:
  51.             loop all players:
  52.                 loop-player has permission "pk.admin":
  53.                     {pk.%loop-player%.errors} is "On":
  54.                         send "{@P} Failed to update block at: %loop-value% - are you sure its a sign?" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment