Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # _____ _____ _____ _ _ _
- # | __ \ | __ \ /\ / ____| | (_) | |
- # | |__) |_ _| |__) | / \ _ __ ___ _ __ __ _ | (___ | | ___ __ _ _ __ | |_
- # | ___/\ \ / / ___/ / /\ \ | '__/ _ \ '_ \ / _` | \___ \| |/ / '__| | '_ \| __|
- # | | \ V /| | / ____ \| | | __/ | | | (_| | ____) | <| | | | |_) | |_
- # |_| \_/ |_| /_/ \_\_| \___|_| |_|\__,_| |_____/|_|\_\_| |_| .__/ \__|
- # | |
- # |_|
- ##-----------------------------------------------------------------------------------------------------------------------##
- ##-----------------------------------------------------------------------------------------------------------------------##
- # Reset all variables to text form incase of failure
- # or if the skript is new to the server it is used on
- command /arenavariables:
- description: Reset all variables to text form incase of failure or if the skript is new to the server it is used on
- usage: /arenavariables -- /av
- aliases: /av
- trigger:
- if command sender does not have the permission "arena.resetvariables":
- send "<red><b>[<r><blue>PvP Arena<red><b>] <r>Missing Permission! (Missing ""arena.resetvariables"")"
- else if command sender has the permission "arena.resetvariables":
- # ___ _ __ __ _ _ _
- # | _ \ ___ ___ ___ | |_ \ \ / / __ _ _ _ (_) __ _ | |__ | | ___ ___
- # | / / -_) (_-< / -_) | _| \ V / / _` | | '_| | | / _` | | '_ \ | | / -_) (_-<
- # |_|_\ \___| /__/ \___| \__| \_/ \__,_| |_| |_| \__,_| |_.__/ |_| \___| /__/
- #
- # The main prefix seen in chat
- set {PVPAS.Prefix} to "<red><b>[<r><blue>PvP Arena<red><b>]
- # Text variables for Arena related messages
- 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>!"
- set {PVPAS.Variables.Success_CS} to " <r>You have successfully reset the variables"
- set {PVPAS.Variables.Success_OP} to " <r>The <light gray>PvP Arena <r>variables were reset by <light gray>%command sender%"
- set {PVPAS.Arena.Enter} to " <r>You have entered the <light gray>%{_PVPAS.random_warp}% <r>PvP warp!"
- set {PVPAS.Arena.Leave_Warn} to " <r>You will be warped to spawn in <light gray>%{PVPAS.leave_time}% <r>seconds!"
- set {PVPAS.Arena.Leave_Finish} to " <r>You have been successfully warped out of the PvP Arena!"
- # Stored variables used to keep information -- True/False states, etc.
- set {PVPAS.Arena} to false
- # Error messages -- Invalid Syntax, no permissions, etc,
- set {PVPAS.Console_Deny} to " <r>You may not execute the command <light gray>/%full command% <r>from the <light gray>CONSOLE"
- set {PVPAS.PD.Toggle} to " <r>No Permission! <b>(<r>Missing: ""arena.togglestate""<b>)"
- wait 0.25 seconds
- # Message to command sender + all OPs
- message "%{PVPAS.Prefix}% %{PVPAS.Variables.Success}%" to command sender
- loop all players:
- if loop-player has permission "server.notify":
- loop-player is not command sender
- message "%{PVPAS.Prefix}% %{PVPAS.Variables.Success_OP}%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement