Advertisement
Guest User

Untitled

a guest
Jul 10th, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. # _____ _____ _____ _ _ _
  2. # | __ \ | __ \ /\ / ____| | (_) | |
  3. # | |__) |_ _| |__) | / \ _ __ ___ _ __ __ _ | (___ | | ___ __ _ _ __ | |_
  4. # | ___/\ \ / / ___/ / /\ \ | '__/ _ \ '_ \ / _` | \___ \| |/ / '__| | '_ \| __|
  5. # | | \ V /| | / ____ \| | | __/ | | | (_| | ____) | <| | | | |_) | |_
  6. # |_| \_/ |_| /_/ \_\_| \___|_| |_|\__,_| |_____/|_|\_\_| |_| .__/ \__|
  7. # | |
  8. # |_|
  9.  
  10. ##-----------------------------------------------------------------------------------------------------------------------##
  11. ##-----------------------------------------------------------------------------------------------------------------------##
  12.  
  13. # Reset all variables to text form incase of failure
  14. # or if the skript is new to the server it is used on
  15.  
  16. command /arenavariables:
  17. description: Reset all variables to text form incase of failure or if the skript is new to the server it is used on
  18. usage: /arenavariables -- /av
  19. aliases: /av
  20. trigger:
  21.  
  22. if command sender does not have the permission "arena.resetvariables":
  23. send "<red><b>[<r><blue>PvP Arena<red><b>] <r>Missing Permission! (Missing ""arena.resetvariables"")"
  24. else if command sender has the permission "arena.resetvariables":
  25.  
  26. # ___ _ __ __ _ _ _
  27. # | _ \ ___ ___ ___ | |_ \ \ / / __ _ _ _ (_) __ _ | |__ | | ___ ___
  28. # | / / -_) (_-< / -_) | _| \ V / / _` | | '_| | | / _` | | '_ \ | | / -_) (_-<
  29. # |_|_\ \___| /__/ \___| \__| \_/ \__,_| |_| |_| \__,_| |_.__/ |_| \___| /__/
  30. #
  31.  
  32. # The main prefix seen in chat
  33. set {PVPAS.Prefix} to "<red><b>[<r><blue>PvP Arena<red><b>]
  34.  
  35. # Text variables for Arena related messages
  36. set {PVPAS.Arena.ToggleState} to " <r>The <light gray>PvP Arena <r>has been <light gray>%arg 1%d <r>by <light gray>%command sender%<r>!"
  37.  
  38. set {PVPAS.Variables.Success_CS} to " <r>You have successfully reset the variables"
  39. set {PVPAS.Variables.Success_OP} to " <r>The <light gray>PvP Arena <r>variables were reset by <light gray>%command sender%"
  40.  
  41. set {PVPAS.Arena.Enter} to " <r>You have entered the <light gray>%{_PVPAS.random_warp}% <r>PvP warp!"
  42. set {PVPAS.Arena.Leave_Warn} to " <r>You will be warped to spawn in <light gray>%{PVPAS.leave_time}% <r>seconds!"
  43. set {PVPAS.Arena.Leave_Finish} to " <r>You have been successfully warped out of the PvP Arena!"
  44.  
  45. # Stored variables used to keep information -- True/False states, etc.
  46. set {PVPAS.Arena} to false
  47.  
  48. # Error messages -- Invalid Syntax, no permissions, etc,
  49. set {PVPAS.Console_Deny} to " <r>You may not execute the command <light gray>/%full command% <r>from the <light gray>CONSOLE"
  50. set {PVPAS.PD.Toggle} to " <r>No Permission! <b>(<r>Missing: ""arena.togglestate""<b>)"
  51.  
  52. wait 0.25 seconds
  53.  
  54. # Message to command sender + all OPs
  55. message "%{PVPAS.Prefix}% %{PVPAS.Variables.Success}%" to command sender
  56. loop all players:
  57. if loop-player has permission "server.notify":
  58. loop-player is not command sender
  59. message "%{PVPAS.Prefix}% %{PVPAS.Variables.Success_OP}%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement