Version de Minecraft : 1.8.9
Version de Skript : 2.1.2
Type du skript : AntiCheat
Je voudrais crée un anti cheat xray, le problème ! c'est que je vais faire genre : if {anticheat.xray.%player%} > 64:
Mais sa ne marche pas !! Pouvais vous m'aider ?? ou trouver une alternative ?
Voila un screen de l'erreur : [Contenu masqué]
Voila le code en complet :
on break:
if block is diamond ore:
add 1 to {anticheat.xray.diamond.ore.%player%}
if block is emerald ore:
add 1 to {anticheat.xray.emerald.ore.%player%}
if block is gold ore:
add 1 to {anticheat.xray.gold.ore.%player%}
if block is iron ore:
add 1 to {anticheat.xray.fer.ore.%player%}
if block is coal ore:
add 1 to {anticheat.xray.coal.ore.%player%}
every 10 second:
if {anticheat.xray.diamond.ore.%player%}%" > 64:
loop all players:
loop-player has permission "anticheat.sk":
send "&6[AntiCheat] &6%player% &9semble avoir un &cXray &c!! &6Attention !! Peut être faux !" to loop-player
if {anticheat.xray.emerald.ore.%player%} > 48:
loop all players:
loop-player has permission "anticheat.sk":
send "&6[AntiCheat] &6%player% &9semble avoir un &cXray &c!! &6Attention !! Peut être faux !" to loop-player
if {anticheat.xray.gold.ore.%player%} > 128:
loop all players:
loop-player has permission "anticheat.sk":
send "&6[AntiCheat] &6%player% &9semble avoir un &cXray &c!! &6Attention !! Peut être faux !" to loop-player
if {anticheat.xray.fer.ore.%player%} > 192:
loop all players:
loop-player has permission "anticheat.sk":
send "&6[AntiCheat] &6%player% &9semble avoir un &cXray &c!! &6Attention !! Peut être faux !" to loop-player
if {anticheat.xray.coal.ore.%player%} > 256:
loop all players:
loop-player has permission "anticheat.sk":
send "&6[AntiCheat] &6%player% &9semble avoir un &cXray &c!! &6Attention !! Peut être faux !" to loop-player
every 10 minute:
loop all players:
make loop-player execute "§clearxray"
command /§clearxray:
trigger:
set {anticheat.xray.coal.ore.%player%} to 0
set {anticheat.xray.fer.ore.%player%} to 0
set {anticheat.xray.gold.ore.%player%} to 0
set {anticheat.xray.emerald.ore.%player%} to 0
set {anticheat.xray.diamond.ore.%player%} to 0