Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "0-1":
- wait 2 seconds
- set {0-1} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "0-1":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "0-1":
- set {0-1} to false
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "0-2":
- wait 2 seconds
- set {0-2} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "0-2":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "0-2":
- set {0-2} to false
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "0-3":
- wait 2 seconds
- set {0-3} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "0-3":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "0-3":
- set {0-1} to false
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "0-4":
- wait 2 seconds
- set {0-4} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "0-4":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "0-4":
- set {0-4} to false
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "0-5":
- wait 2 seconds
- set {0-5} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "0-5":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "0-5":
- set {0-5} to false
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "0-6":
- wait 2 seconds
- set {0-6} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "0-6":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "0-6":
- set {0-6} to false
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "0-7":
- wait 2 seconds
- set {0-7} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "0-7":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "0-7":
- set {0-7} to false
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "0-8":
- wait 2 seconds
- set {0-8} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "0-8":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "0-8":
- set {0-8} to false
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "0-9":
- wait 2 seconds
- set {0-9} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "0-9":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "0-9":
- set {0-9} to false
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "1-0":
- wait 2 seconds
- set {1-0} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "1-0":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "1-0":
- set {1-0} to false
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "1-1":
- wait 2 seconds
- set {1-1} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "1-1":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "1-1":
- set {1-1} to false
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "1-2":
- wait 2 seconds
- set {1-2} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "1-2":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "1-2":
- set {1-2} to false
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "1-3":
- wait 2 seconds
- set {1-3} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "1-3":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "1-3":
- set {1-3} to false
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "1-4":
- wait 2 seconds
- set {1-4} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "1-4":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "1-4":
- set {1-4} to false
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "1-5":
- wait 2 seconds
- set {1-5} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "1-5":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "1-5":
- set {1-5} to false
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "1-6":
- wait 2 seconds
- set {1-6} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "1-6":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "1-6":
- set {1-6} to false
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "1-7":
- wait 2 seconds
- set {1-7} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "1-7":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "1-7":
- set {1-7} to false
- on login:
- if player is in world "1v1":
- if "%region at player%" contains "1-8":
- wait 2 seconds
- set {1-8} to true
- wait 2.5 minutes
- loop all players:
- loop-player is in world "1v1":
- if "%region at loop-player%" contains "1-8":
- stop trigger
- loop all players:
- if "%region at loop-player%" does not contain "1-8":
- set {1-8} to false
- on hunger bar change:
- player is in world "1v1":
- cancel the event
- on damage:
- damage was caused by fall:
- victim is in world "1v1":
- cancel the event
- on damage:
- damage was caused by lava:
- victim is in world "1v1":
- cancel the event
- on command "/pl":
- player is not op:
- cancel the event
- on command "/plugins":
- player is not op:
- cancel the event
- on skript start:
- set {0-1} to false
- set {0-2} to false
- set {0-3} to false
- set {0-4} to false
- set {0-5} to false
- set {0-6} to false
- set {0-7} to false
- set {0-8} to false
- set {0-9} to false
- set {1-0} to false
- set {1-1} to false
- set {1-2} to false
- set {1-3} to false
- set {1-4} to false
- set {1-5} to false
- set {1-6} to false
- set {1-7} to false
- set {1-8} to false
- command /1v1reset:
- permission: skript.op
- trigger:
- set {0-1} to false
- set {0-2} to false
- set {0-3} to false
- set {0-4} to false
- set {0-5} to false
- set {0-6} to false
- set {0-7} to false
- set {0-8} to false
- set {0-9} to false
- set {1-0} to false
- set {1-1} to false
- set {1-2} to false
- set {1-3} to false
- set {1-4} to false
- set {1-5} to false
- set {1-6} to false
- set {1-7} to false
- set {1-8} to false
- on death of player:
- attacker is in world "1v1":
- message "%{Fprefix}% You killed %victim%&7!"
- clear the player's inventory
- clear the attacker's inventory
- teleport attacker to spawn point of "FleftSpawn"
- teleport victim to spawn point of "FleftSpawn"
- heal the attacker
- set death message to ""
- wait 0.1 second
- clear the player's inventory
- clear the attacker's inventory
- wait 0.1 second
- give 1 compass named "&c&lRight click for PvP menu" to the attacker
- command /1v1arena <text>:
- permission: skript.op
- trigger:
- if arg is "on":
- set {1v1} to true
- if arg is "off":
- set {1v1} to false
- command /1v1leave:
- trigger:
- {1v1} is true:
- command sender is in world "1v1":
- message "%{Fprefix}% Leaving 1v1 in 10 seconds&7!"
- set {1v1damage.%command sender%} to true
- wait 10 seconds
- if {1v1damage.%command sender%} is false:
- stop trigger
- message "%{Fprefix}% You took damage&7!"
- if {1v1damage.%command sender%} is true:
- clear the player's inventory
- teleport player to spawn point of "FleftSpawn"
- clear the player's inventory
- heal the player
- message "%{Fprefix}% You left 1v1!"
- give 1 compass named "&c&lRight click for PvP menu" to the player
- on drop of compass:
- player is in world "FleftSpawn":
- cancel the event
- on damage:
- {1v1damage.%command sender%} is true:
- set {1v1damage.%command sender%} to false
- on login:
- {1v1} is true:
- wait 0.1 second
- clear the player's inventory
- wait 0.25 seconds
- give 1 compass named "&c&lRight click for PvP menu" to the player
- on respawn:
- {1v1} is true:
- wait 1 second
- give 1 compass named "&c&lRight click for PvP menu" to the player
- #---------------------------------------------------------------------------------------------------
- #This section handles players navigating the GUI menus without permissions
- command /1v1matchmenu:
- trigger:
- execute console command "/chc open 1v1matches.yml %player%"
- command /guimainmenu:
- trigger:
- execute console command "/chc open main-menu.yml %player%"
- on right click:
- {1v1} is true:
- player is holding compass:
- execute console command "/chc open main-menu.yml %player%"
- #---------------------------------------------------------------------------------------------------
- #This section handles players entering and exiting arena regions
- on region enter:
- if "%region%" contains "0-1":
- set {0-1} to true
- if "%region%" contains "0-2":
- set {0-2} to true
- if "%region%" contains "0-3":
- set {0-3} to true
- if "%region%" contains "0-4":
- set {0-4} to true
- if "%region%" contains "0-5":
- set {0-5} to true
- if "%region%" contains "0-6":
- set {0-6} to true
- if "%region%" contains "0-7":
- set {0-7} to true
- if "%region%" contains "0-8":
- set {0-8} to true
- if "%region%" contains "0-9":
- set {0-9} to true
- if "%region%" contains "1-0":
- set {1-0} to true
- if "%region%" contains "1-1":
- set {1-1} to true
- if "%region%" contains "1-2":
- set {1-2} to true
- if "%region%" contains "1-3":
- set {1-3} to true
- if "%region%" contains "1-4":
- set {1-4} to true
- if "%region%" contains "1-5":
- set {1-5} to true
- if "%region%" contains "1-6":
- set {1-6} to true
- if "%region%" contains "1-7":
- set {1-7} to true
- if "%region%" contains "1-8":
- set {1-8} to true
- on region leave:
- if "%region%" contains "0-1":
- set {0-1} to false
- if "%region%" contains "0-2":
- set {0-2} to false
- if "%region%" contains "0-3":
- set {0-3} to false
- if "%region%" contains "0-4":
- set {0-4} to false
- if "%region%" contains "0-5":
- set {0-5} to false
- if "%region%" contains "0-6":
- set {0-6} to false
- if "%region%" contains "0-7":
- set {0-7} to false
- if "%region%" contains "0-8":
- set {0-8} to false
- if "%region%" contains "0-9":
- set {0-9} to false
- if "%region%" contains "1-0":
- set {1-0} to false
- if "%region%" contains "1-1":
- set {1-1} to false
- if "%region%" contains "1-2":
- set {1-2} to false
- if "%region%" contains "1-3":
- set {1-3} to false
- if "%region%" contains "1-4":
- set {1-4} to false
- if "%region%" contains "1-5":
- set {1-5} to false
- if "%region%" contains "1-6":
- set {1-6} to false
- if "%region%" contains "1-7":
- set {1-7} to false
- if "%region%" contains "1-8":
- set {1-8} to false
- #---------------------------------------------------------------------------------------------------
- #This section handles keeping track of what arenas are full
- #0-1
- on command "/qadd 0-1":
- if {0-1} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #0-2
- on command "/qadd 0-2":
- if {0-2} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #0-3
- on command "/qadd 0-3":
- if {0-3} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #0-4
- on command "/qadd 0-4":
- if {0-4} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #0-5
- on command "/qadd 0-5":
- if {0-5} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #0-6
- on command "/qadd 0-6":
- if {0-6} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #0-7
- on command "/qadd 0-7":
- if {0-7} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #0-8
- on command "/qadd 0-8":
- if {0-8} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #0-9
- on command "/qadd 0-9":
- if {0-9} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #1-0
- on command "/qadd 1-0":
- if {1-0} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #1-1
- on command "/qadd 1-1":
- if {1-1} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #1-2
- on command "/qadd 1-2":
- if {1-2} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #1-3
- on command "/qadd 1-3":
- if {1-3} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #1-4
- on command "/qadd 1-4":
- if {1-4} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #1-5
- on command "/qadd 1-5":
- if {1-5} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #1-6
- on command "/qadd 1-6":
- if {1-6} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #1-7
- on command "/qadd 1-7":
- if {1-7} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #1-8
- on command "/qadd 1-8":
- if {1-8} is true:
- cancel the event
- execute console command "/playsound note.bass %command sender% ~ ~ ~ 1 1 1"
- message "%{Fprefix}% &cSomeone is in that arena&7!"
- else:
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- #---------------------------------------------------------------------------------------------------
- #This section handles what happens to players once they enter the arena
- on region enter:
- player is in world "1v1":
- if player's gamemode is not survival:
- set the player's gamemode to survival
- apply resistance 5 to the player for 10.5 seconds
- heal the player
- clear the player's inventory
- equip player with all iron armor
- give iron sword to the player
- give bow of infinity 1 to the player
- give arrow to the player
- message "&7[&bFavonius&7]&r You have 10 seconds to spread out." to the player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement