Hi, I would like to use an expression to read scoreboard objectives. Unfortunately, I get only an error and no output.
My code:
The error in the console when executing the command:
Can soneone help me
My code:
Code:
inport:
org.bukkit.scoreboard.Score
expression score of %player% out of [objective] %string%:
get:
return Score.getPlayer(expression-1).getObjective(expression-2).getScore()
command /stats [<text>]:
trigger:
if arg 1 is "Deaths":
score of sender out of "Deaths"
send "You have %{_value}% deaths"
if arg 1 is "Level":
score of sender out of "Level"
send "You are at level %{_value}%"
The error in the console when executing the command:
Code:
[Skript] No matching static method: Score.getPlayer called with (dergrosehd (CraftPlayer))
[Skript] Did you misspell the method? You may have meant to type one of the following:
[Skript] * %Score%.getPlayer
Can soneone help me