Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.
options:
Warps: 5
# How ever many different warps you want for your arena. 30 is an average number. e.g: a1, a2, a3
Pre: &3[&9MLG&3]
# Prefix for all messages.
Command: /MLG
# The main Arena command.
Alias: /a
# The alternative command.
World: Arena
# The name of the world your Arena is in.
# Main Command
command {@Command}:
aliases: {@Alias}
trigger:
if {pvparena.enabled} is set:
set {playermlg.%player%} to 1
clear the player's inventory
set the player's gamemode to survival
give player 1 water bucket named "&6Only Chance"
send "You have &bjoined &fthe PvP arena! Do &b&l/mlgleave to leave!" to command executor
execute console command "/warp a%a random integer between 1 and {@Warps}% %player%"
else:
message "the PvP arena has not been &aenabled"
on place of water:
if {playermlg.%player%} is set:
clear player's inventory
wait 2 seconds
set block to air
wait 1 tick
make player execute "/mlg"
on death of player:
if {playermlg.%player%} is set:
delete {playermlg.%player%}
clear drops
make console execute command "/spawn %player%"
# Toggles Arena
command /mlgarena [<text>]:
usage: /mlgarena <enable/disable>
permission: skript.pvparena
trigger:
if arg is "on" or "true" or "enable":
set {pvparena.enabled} to location of player
broadcast "{@Pre} &fMLG Arena &aEnabled &fby &b%command sender%&f!"
stop trigger
if arg is "off" or "false" or "disable":
delete {pvparena.enabled}
broadcast "{@Pre} &fMLG Arena &cDisabled &fby &b%command sender%&f!"
loop all players:
if {playermlg.%loop-player%} is set:
make loop-player execute command "/mlgleave"
stop trigger
# Leaves The Arena
command /mlgleave:
aliases: /mlgleave
trigger:
if {playermlg.%player%} is set:
message "{@Pre}&8 Leaving the PvP Arena!"
wait 1 ticks
heal the player
make console execute command "/spawn %player%"
make console execute command "/ci %player%"
make console execute command "/scoreboard players reset %player%"
stop
# In-Game help on the Arena (For OPs)
command /mlghelp:
aliases: /mlghelp
permission: skript.mlgarena
trigger:
send "{@Pre}&8 Do &b/mlgarena <&aenable&r/&cdisable&r> to toggle the &bMLGArena"
# Disables Hunger Loss
on hunger meter change:
if {playermlg.%player%} is set:
set player's hunger meter to 10
# Stops default Death Messages
on death:
if {playermlg.%victim%} is set:
set the death message to "&a"
# Regeneration & Speed on kills
on death of player:
if {playermlg.%attacker%} is set:
clear drops