Can't understand this condition/effect send title

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

superrtutur

New Member
Apr 20, 2019
7
0
1
23
Version: 1.12.2
Version of Skript: v37c
Addons of Skript: SkQuery, Skelett, SkRayFall, TuSKe, MundoSK

Skript:
function bg_death(p: player):
metadata value "BG-DEATH" of {_p} is not set:
set metadata value "BG-DEATH" of {_p} to "SET"
set {_uuid} to uuid of {_p}
add 1 to {bg.stats.deaths::%{_uuid}%}
metadata value "LAST-HIT" of {_p} is not set:
set {_y} to "unknown"
else:
set {_y} to metadata value "LAST-HIT" of {_p}
set {_uuid} to uuid of {_y}
add 1 to {bg.stats.kills::%{_uuid}%}
set {_o-o} to {BG::CONFIG::COMMANDS.KILL}
replace all "{player}" in {_o-o} with "%{_y}%"
make console execute command "%{_o-o}%"
set {_msg} to {BG::CONFIG::MESSAGES.KILL-MESSAGE}
replace all "{victim}" in {_msg} with "%{_p}%"
replace all "{killer}" in {_msg} with "%{_y}%"
send "%{BG::CONFIG::MESSAGES.PREFIX}% %{_msg}%" to {bg.arena.%{bg.player::%{_uuid}%.arena}%.ninjas::*}
add {_p} to {bg.arena.%{bg.player::%{_uuid}%.arena}%.bad-ninjas::*}
send player title "&e&l##%size of {bg.arena.%{bg.player::%{_uuid}%.arena}%.ninjas::*}% &c&lGAME OVER" with subtitle "&eBATTLE ROYALE" for 5 seconds
bg_remove({_p}, {bg.player::%{_uuid}%.arena})
set {_p}'s gamemode to spectator
set {_helmet} to {_p}'s helmet
set {_chestplate} to {_p}'s chestplate
set {_leggings} to {_p}'s leggings
set {_boots} to {_p}'s boots
loop blocks in radius 1 of {_p}:
loop-block is air
set loop-block to chest
set {bg.arena.%{bg.player::%{_uuid}%.arena}%.CHESTS::%location of loop-block%} to location of loop-block
add {_helmet}, {_chestplate}, {_leggings} and {_boots} to loop-block
loop items in {_p}'s inventory:
add loop-item to loop-block
add 1 golden apple to loop-block
add location of loop-block to {bg.arena.%{bg.player::%{_uuid}%.arena}%.KILL-ME-PLS::*}
set {_block} to true
stop
loop items in {_p}'s inventory:
drop loop-item at {_p}

Problem:
Hello
The problem is "send player title "&e&l##%size of {bg.arena.%{bg.player::%{_uuid}%.arena}%.ninjas::*}% &c&lGAME OVER" with subtitle "&eBATTLE ROYALE" for 5 seconds"
Error: Can't understand this condition/effect
 
Try
Code:
send player title "&e&l##%size of {bg.arena.%{bg.player::%{_uuid}%.arena}%.ninjas::*}% &c&lGAME OVER" with subtitle "&eBATTLE ROYALE" for 5 seconds with 0 second fade in and 0 second fade out
 
Use
Code:
send {_p} title "&e&l##%size of {bg.arena.%{bg.player::%{_uuid}%.arena}%.ninjas::*}% &c&lGAME OVER" with subtitle "&eBATTLE ROYALE" for 5 seconds with 0 second fade in and 0 second fade out
 
Also next time please don’t send the whole code if the error only refers to one error
 
yes but it was not all the code is just the function because if I put a part we would not understand
 
If you only added the first line (function ...) it woul've already been fine. Next time format your code
 
Status
Not open for further replies.