Mam pewien skrypt napisany przez mojego kolegę. Niestety nie chce w nim permissji, a jak usuwam samą linijkę z permisjami to mi wyskakuje błąd w postaci źle ustawionych spacji lub o złej konfiguracji. Proszę o pomoc!
[ OTO SKRYPT ]
variables:
{tree.status} = 1
options:
permission: &cNie Posiadasz Permisji, aby Uzyc Tej Komendy!
tag: &f[&bTreeAssist&f]
on break of wood:
{tree.status} is 1:
if player has permission "tree":
player is holding axe:
loop blocks upwards:
loop-block is wood:
drop the loop-block-1 at event-block
set the loop-block-1 to air
add 1 to {tool.%player%}
loop blocks in radius 1 around loop-block:
if loop-block-1 is leaves:
set {tree.%player%} to true
set the loop-block-1 to air
else:
send "{@tag} {@permission}"
stop
command /tree [<text>]:
trigger:
if player has permission "tree":
if arg 1 is "off":
set {tree.status} to 0
send "{@tag} &9TreeAssist jest Teraz &c&lOFF"
stop
if arg 1 is "on":
set {tree.status} to 1
send "{@tag} &9TreeAssist jest Teraz &a&lON"
stop
else:
send "{@tag} &9/tree &8(&9on&8/&9off&8)"
stop
else:
send "{@tag} {@permission}"
stop
Pytanie
EltusieK 6
Mam pewien skrypt napisany przez mojego kolegę. Niestety nie chce w nim permissji, a jak usuwam samą linijkę z permisjami to mi wyskakuje błąd w postaci źle ustawionych spacji lub o złej konfiguracji. Proszę o pomoc!
[ OTO SKRYPT ]
variables:
{tree.status} = 1
options:
permission: &cNie Posiadasz Permisji, aby Uzyc Tej Komendy!
tag: &f[&bTreeAssist&f]
on break of wood:
{tree.status} is 1:
if player has permission "tree":
player is holding axe:
loop blocks upwards:
loop-block is wood:
drop the loop-block-1 at event-block
set the loop-block-1 to air
add 1 to {tool.%player%}
loop blocks in radius 1 around loop-block:
if loop-block-1 is leaves:
set {tree.%player%} to true
set the loop-block-1 to air
else:
send "{@tag} {@permission}"
stop
command /tree [<text>]:
trigger:
if player has permission "tree":
if arg 1 is "off":
set {tree.status} to 0
send "{@tag} &9TreeAssist jest Teraz &c&lOFF"
stop
if arg 1 is "on":
set {tree.status} to 1
send "{@tag} &9TreeAssist jest Teraz &a&lON"
stop
else:
send "{@tag} &9/tree &8(&9on&8/&9off&8)"
stop
else:
send "{@tag} {@permission}"
stop
Odnośnik do komentarza
Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi