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:
#example: dollar, euro, coin, etc...
moneyname: &6&lRushCoin&r
#What item should represent the money/kills/deaths/online players
moneyitem: emerald
killsitem: head
deathsitem: white wool
onlineplayeritem: paper
#The skript inclus a custom join/leave message ! What should the messages be ?
joinmessage: &8%player% &7[&a+&7]
leavemessage: &8%player% &7[&c-&7]
#How many many seconds should the blocks start dissapear ?
clearblockdelay: 10
#tntvertical = how much block upward should the player be pushed. tnthorizontal = how much block forward should the player be pushed
tntvertical: 2
tnthorizontal: 4
#messages:
arenajoiningmessage: &aYou joined the arena ! Good Luck !
on place:
if {buildermode.%player%} is not set:
if {inspawn.%player%} is set:
cancel event
if {inarena.%player%} is set:
wait 1 tick
add 1 sandstone to player's inventory
wait {@clearblockdelay} seconds
set event-block to air
on break:
if {buildermode.%player%} is not set:
if {inarena.%player%} is set:
if event-block is not sandstone:
if event-block is not tnt:
cancel event
else:
cancel event
set event-block to air
if {inspawn.%player%} is set:
cancel event
on inventory click:
if {buildermode.%player%} is not set:
if {inspawn.%player%} is set:
cancel event
if {inarena.%player%} is set:
cancel event
on pickup:
if {buildermode.%player%} is not set:
if {inspawn.%player%} is set:
cancel event
on hunger meter change:
if {inspawn.%player%} is set:
cancel event
on drop:
if {inspawn.%player%} is set:
cancel event
on damage:
if {inspawn.%victim%} is set:
cancel event
if {inarena.%victim%} is set:
if damage cause is burn:
cancel event
if damage cause is fire:
cancel event
if damage cause is fall:
cancel event
damage victim by 0.1 heart
if damage cause is entity explosion:
cancel event
damage victim by 0.1 heart
push victim {@tnthorizontal} blocks forward
push victim {@tntvertical} blocks upward
if damage cause is void:
cancel event
clear victim's inventory
clear {inarena.%victim%}
clear {inspawn.%victim%}
set victim's health to 10
set victim's hunger to 10
remove absorption from victim
remove regeneration from victim
set slot 0 of victim to iron axe named "&9&lJoin Arena" with lore "&7&m----------------||&r||&6Online: &f%number of all players%||&r||&7Right-click to join FFA arena !||&r||&7&m----------------"
set slot 8 of victim to {@moneyitem} named "{@moneyname}: %{coin.%victim%}%"
set slot 7 of victim to {@killsitem} named "&5&lKills: &r%{kills.%victim%}%"
set slot 6 of victim to {@deathsitem} named "&4&lDeaths: &r%{death.%victim%}%"
set slot 5 of victim to {@onlineplayeritem} named "&6&lOnline:&r &f%number of all players%"
set {inspawn.%victim%} to true
add 1 to {death.%victim%}
teleport victim to {spawn}
on death:
if {inarena.%victim%} is set:
set victim's health to 10
set victim's hunger to 10
remove absorption from player
remove regeneration from player
clear victim's inventory
clear {inarena.%victim%}
clear {inspawn.%victim%}
set {inspawn.%victim%} to true
add 1 to {death.%victim%}
add 1 to {kills.%attacker%}
set attacker's health to 10
hide player to all players
wait 1 second
teleport victim to {spawn}
reveal player to all players
set slot 0 of victim to iron axe named "&9&lJoin Arena" with lore "&7&m----------------||&r||&6Online: &f%number of all players%||&r||&7Right-click to join FFA arena !||&r||&7&m----------------"
set slot 8 of victim to {@moneyitem} named "{@moneyname}: %{coin.%victim%}%"
set slot 7 of victim to {@killsitem} named "&5&lKills: &r%{kills.%victim%}%"
set slot 6 of victim to {@deathsitem} named "&4&lDeaths: &r%{death.%victim%}%"
set slot 5 of victim to {@onlineplayeritem} named "&6&lOnline:&r &f%number of all players%"
message "&a%attacker% &7killed &c%victim%" to victim
message "&a%attacker% &7killed &c%victim%" to attacker
if victim is op:
add 3 to {coin.%attacker%}
message "&6+3 {@moneyname}" to attacker
else:
if victim has permission "rushffa.rank1":
add 1 to {coin.%attacker%}
message "&6+1 {@moneyname}" to attacker
if victim has permission "rushffa.rank2":
add 2 to {coin.%attacker%}
message "&6+2 {@moneyname}" to attacker
if victim has permission "rushffa.rank3":
add 3 to {coin.%attacker%}
message "&6+3 {@moneyname}" to attacker
every 5 minutes:
send "&2Clearing all dropped items !" to all players
clear all dropped items
send "&2Clearing all dropped items in 5 minutes !" to all players
command /cleardrops:
permission: rushffa.staff
trigger:
send "&2Clearing all dropped items !" to all players
clear all dropped items
send "&2Cleared all dropped items" to all players
on load:
if {first} is not set:
set {posnumber} to 0
set {first} to true
loop blocks in radius 150 around {center}:
loop-block is sandstone:
set loop-block to air
loop-block is tnt:
set loop-block to air
log "Enabling RushFFA v2.5"
on quit:
hide player to all players
set leave message to "{@leavemessage}"
teleport player to {spawn}
on first join:
set {coin.%player%} to 0
set {death.%player%} to 0
set {kills.%player%} to 0
set join message to "{@joinmessage}"
on join:
set join message to "{@joinmessage}"
remove absorption from player
remove regeneration from player
set player's health to 10
set player's hunger to 10
clear player's inventory
clear {inarena.%player%}
clear {inspawn.%player%}
wait 1 second
reveal player to all players
set slot 0 of player to iron axe named "&9&lJoin Arena" with lore "&7&m----------------||&r||&6Online: &f%number of all players%||&r||&7Right-click to join FFA arena !||&r||&7&m----------------"
set slot 8 of player to {@moneyitem} named "{@moneyname}: %{coin.%player%}%"
set slot 7 of player to {@killsitem} named "&5&lKills: &r%{kills.%player%}%"
set slot 6 of player to {@deathsitem} named "&4&lDeaths: &r%{death.%player%}%"
set slot 5 of player to {@onlineplayeritem} named "&6&lOnline:&r &f%number of all players%"
set {inspawn.%player%} to true
teleport player to {spawn}
command /rushffa [<text>]:
aliases: rf
permission: rushffa.setup
trigger:
if arg 1 is not set:
send "&8&m--------------------------------"
send " "
send " &eRush&6FFA"
send " "
send "&6/rushffa setspawn &eSet spawn"
send "&6/rushffa setpos &eSet arena spawn position"
send "&6/rushffa builder &eToggle place solid blocks"
send "&6/rushffa resetall &eReset the entire skript"
send "&8&m--------------------------------"
else:
if arg-1 is not "setspawn", "setpos", "resetall" or "builder":
send "&8&m--------------------------------"
send " "
send " &eRush&6FFA"
send " "
send "&6/rushffa setspawn &eSet spawn"
send "&6/rushffa setpos &eSet arena spawn position"
send "&6/rushffa builder &eToggle place solid blocks"
send "&6/rushffa resetall &eReset the entire skript"
send "&8&m--------------------------------"
else:
if arg 1 is "setspawn":
set {spawn} to location of player
send "&6Spawn setup at &e%location% &6!"
if arg-1 is "setpos":
add 1 to {posnumber}
set {pos.%{posnumber}%} to location of player
add {pos.%{posnumber}%} to {positions::*}
send "&6Setup arena spawn position number &e%{posnumber}% &6at &e%location% &6!"
if arg-1 is "builder":
if {buildermode.%player%} is not set:
set {buildermode.%player%} to true
send "&6You can now place solid blocks !"
else:
clear {buildermode.%player%}
send "&6You are now place blocks like a random player !"
if arg-1 is "resetall":
send "&cReseting all..."
clear {spawn}
wait 5 ticks
clear {positions::*}
wait 10 ticks
set {_numero} to 0
wait 5 ticks
loop 20 times:
clear {pos.%{_numero}%}
add 1 to {_numero}
wait 20 ticks
set {posnumber} to 0
wait 5 ticks
clear {_numero}
wait 5 ticks
send "&cDONE !"
on right click with iron axe:
if name of tool of player is "&9&lJoin Arena":
clear {inspawn.%player%}
set {inarena.%player%} to true
clear player's inventory
set {_random} to random element of {positions::*}
teleport player to {_random}
clear {_random}
send "{@arenajoiningmessage}"
if player has permission is op:
restore inventory of player from {kit3.inv}
equip player with 1 of {kit3.helmet}
equip player with 1 of {kit3.chestplate}
equip player with 1 of {kit3.leggings}
equip player with 1 of {kit3.boots}
else:
if player has permission "rushffa.rank1":
restore inventory of player from {kit1.inv}
equip player with 1 of {kit1.helmet}
equip player with 1 of {kit1.chestplate}
equip player with 1 of {kit1.leggings}
equip player with 1 of {kit1.boots}
if player has permission "rushffa.rank2":
restore inventory of player from {kit2.inv}
equip player with 1 of {kit2.helmet}
equip player with 1 of {kit2.chestplate}
equip player with 1 of {kit2.leggings}
equip player with 1 of {kit2.boots}
if player has permission "rushffa.rank3":
restore inventory of player from {kit3.inv}
equip player with 1 of {kit3.helmet}
equip player with 1 of {kit3.chestplate}
equip player with 1 of {kit3.leggings}
equip player with 1 of {kit3.boots}
on explosion:
cancel event
loop exploded blocks:
loop-block is sandstone:
set loop-block to air
loop-block is tnt:
set loop-block to air
spawn 1 primed tnt at the loop-block
command /setcenter:
permission: rushffa.setup
trigger:
set {center} to location of player
send "&6Setup arena center position at &e%location% &6!"
command /setkit [<text>]:
permission: rushffa.setup
trigger:
if arg-1 is not set:
send "&cUsage: /setkit <1/2/3>"
else:
if arg-1 is not "1", "2" or "3":
send "&cUsage: /setkit <1/2/3>"
else:
if arg-1 is "1":
set {kit1.helmet} to helmet slot of player
set {kit1.chestplate} to chestplate slot of player
set {kit1.leggings} to leggings slot of player
set {kit1.boots} to boots slot of player
set {kit1.inv} to serialized inventory of player
send "&6Kit of rank 1 setup !"
if arg-1 is "2":
set {kit2.helmet} to helmet slot of player
set {kit2.chestplate} to chestplate slot of player
set {kit2.leggings} to leggings slot of player
set {kit2.boots} to boots slot of player
set {kit2.inv} to serialized inventory of player
send "&6Kit of rank 2 setup !"
if arg-1 is "3":
set {kit3.helmet} to helmet slot of player
set {kit3.chestplate} to chestplate slot of player
set {kit3.leggings} to leggings slot of player
set {kit3.boots} to boots slot of player
set {kit3.inv} to serialized inventory of player
send "&6Kit of rank 3 setup !"
# A BASE MAP !!! URL: http://www.mediafire.com/file/sr12nrmhwuaf9ad/Surprise.schematic