That worked yesterday. After I downloaded the latest 1.18.2 paper version to the server today, not anymore. But why?
The error is:
Line 260: (System.sk)
Can't understand this condition: 'player's tool is any pickaxe, axe, shovel, hoe, armor, bow, crossbow, shield, trident, flint and steel, fishing rod, shears or sword'
Line: if player's tool is any pickaxe, axe, shovel, hoe, armor, bow, crossbow, shield, trident, flint and steel, fishing rod, shears or sword:
Line 288: (System.sk)
'else' has to be placed just after another 'if' or 'else if' section
line: else:
[script] Encountered 2 errors while reloading System.sk! (1492ms)
Code:
command /repair:
permission: flowmc.repair
permission message: {@F}
trigger:
if player's tool is any pickaxe, axe, shovel, hoe, armor, bow, crossbow, shield, trident, flint and steel, fishing rod, shears or sword:
if player's tool's durability > 0:
set {_d} to durability of player's tool
if type of player's tool is diamond tool:
set {_pMP} to 0.5*{_d}
if type of player's tool is netherite tool:
set {_pMP} to 0.8*{_d}
if type of player's tool is gold tool:
set {_pMP} to 0.3*{_d}
if type of player's tool is iron tool:
set {_pMP} to 0.25*{_d}
if type of player's tool is stone tool:
set {_pMP} to 0.10*{_d}
if type of player's tool is wooden tool:
set {_pMP} to 0.05*{_d}
if player's tool is a bow, crossbow, shears, fishing rod, flint and steel, trident or shield:
set {_pMP} to 0.13*{_d}
if player's balance is more or equal to {_pMP}:
remove {_pMP} from player's balance
repair player's tool
send "{@P}&7Du hast das Tool erfolgreich für &a%{_pMP}%$ &7repariert." to player
play sound "block.anvil.use" with volume 2 and pitch 1 to player
else:
send "{@P}&cDu hast nicht genug Geld um dieses Tool zu reparieren. &8(&cDir fehlen %{_pMP}-player's balance%$&8)" to player
play sound "block.chest.close" with volume 2 and pitch 0 to player
else:
send "{@P}Dein Tool ist nicht beschädigt." to player
play sound "block.chest.close" with volume 2 and pitch 0 to player
else:
send "{@P}&cDu musst ein Tool in deiner Hand halten." to player
play sound "block.chest.close" with volume 2 and pitch 0 to player
The error is:
Line 260: (System.sk)
Can't understand this condition: 'player's tool is any pickaxe, axe, shovel, hoe, armor, bow, crossbow, shield, trident, flint and steel, fishing rod, shears or sword'
Line: if player's tool is any pickaxe, axe, shovel, hoe, armor, bow, crossbow, shield, trident, flint and steel, fishing rod, shears or sword:
Line 288: (System.sk)
'else' has to be placed just after another 'if' or 'else if' section
line: else:
[script] Encountered 2 errors while reloading System.sk! (1492ms)