Witam, od paru dni zajmuje się pisaniem pluginów. Lecz mam mały problem bo nie wiem w którym miejscu się on znajduje. Proszę o pomoc oraz skierowanie na właściwą drogę.
command /kit:
trigger:
if argument 1 is "gracz":
if player have permission "zestaw.gracz":
open chest with 1 row named "&8KIty"
wait 1 tick
Format slot 0 of playr with 48 named "Kit start" to close [execulte console comand "/kit1"]
Format slot 1 of playr with 48 named "Kit enderchest" to close [execulte console comand "/kit2"]
Format slot 2 of playr with 48 named "Kit jedzenie" to close [execulte console comand "/kit3"]
stop
else:
send "&3&l> &7Nie masz permisji do zestawu &e&lGracza!" to player
if arg 2 is "Vip":
if player have permission "Vip":
open chest with 1 row named "&8KIty"
wait 1 tick
Format slot 0 of playr with 48 named "Kit start" to close [execulte console comand "/kit1"]
Format slot 1 of playr with 48 named "Kit enderchest" to close [execulte console comand "/kit2"]
Format slot 2 of playr with 48 named "Kit jedzenie" to close [execulte console comand "/kit3"]
stop
else:
send "&3&l> &7Nie masz permisji do zestawu &7&lSVIPA !" to player
stop
if arg 3 is "SVip":
if player have permission "SVip":
open chest with 1 row named "&8KIty"
wait 1 tick
Format slot 0 of playr with 48 named "Kit start" to close [execulte console comand "/kit1"]
Format slot 1 of playr with 48 named "Kit enderchest" to close [execulte console comand "/kit2"]
Format slot 2 of playr with 48 named "Kit jedzenie" to close [execulte console comand "/kit3"]
stop
else:
send "&3&l> &7Nie masz permisji do zestawu &e&lGracza!" to player
on command /kit1:
trigger:
if player have permission "gracz":
give 43 to player
give 65 to player
send "Otrzymałeś zestaw jakis" to player
stop
on command /kit2:
trigger:
if player have permission "Vip":
give 43 to player
give 65 to player
send "Otrzymałeś zestaw jakis" to player
command /kit3:
trigger:
if player have permission "SVip":
give 43 to player
give 65 to player
send "Otrzymałeś zestaw jakis" to player
on command "/kit1":
if {Avangaro.kit1.%player%} is not set:
set {Avangaro.kit1.%player%} to true
wait {@czas.kit1} second
clear {Avangaro.kit1.%player%}
stop
else:
cancel event
send "&2&l> &7Drogi &e&lGraczu &7 !" to player
send "&2&l> &7Tej komendy mozna uzywac co &4&l{@czas.gracz} &3sekund!" to player
stop
on command "/kit2":
if {Avangaro.kit2.%player%} is not set:
set {Avangaro.kit2.%player%} to true
wait {@czas.kit2} second
clear {Avangaro.kit2.%player%}
stop
else:
cancel event
send "&2&l> &7Drogi &e&lGraczu &7 !" to player
send "&2&l> &7Tej komendy mozna uzywac co &4&l{@czas.gracz} &3sekund!" to player
stop
on command "/kit3":
if {Avangaro.kit3.%player%} is not set:
set {Avangaro.kit3.%player%} to true
wait {@czas.kit3} second
clear {Avangaro.kit3.%player%}
stop
else:
cancel event
send "&2&l> &7Drogi &e&lGraczu &7 !" to player
send "&2&l> &7Tej komendy mozna uzywac co &4&l{@czas.gracz} &3sekund!" to player
stop
Pytanie
Avangaro 1
Witam, od paru dni zajmuje się pisaniem pluginów. Lecz mam mały problem bo nie wiem w którym miejscu się on znajduje. Proszę o pomoc oraz skierowanie na właściwą drogę.
options:
czas.kit1: 113
czas.kit2: 154
czas.kit3: 143
command /kit:
trigger:
if argument 1 is "gracz":
if player have permission "zestaw.gracz":
open chest with 1 row named "&8KIty"
wait 1 tick
Format slot 0 of playr with 48 named "Kit start" to close [execulte console comand "/kit1"]
Format slot 1 of playr with 48 named "Kit enderchest" to close [execulte console comand "/kit2"]
Format slot 2 of playr with 48 named "Kit jedzenie" to close [execulte console comand "/kit3"]
stop
else:
send "&3&l> &7Nie masz permisji do zestawu &e&lGracza!" to player
if arg 2 is "Vip":
if player have permission "Vip":
open chest with 1 row named "&8KIty"
wait 1 tick
Format slot 0 of playr with 48 named "Kit start" to close [execulte console comand "/kit1"]
Format slot 1 of playr with 48 named "Kit enderchest" to close [execulte console comand "/kit2"]
Format slot 2 of playr with 48 named "Kit jedzenie" to close [execulte console comand "/kit3"]
stop
else:
send "&3&l> &7Nie masz permisji do zestawu &7&lSVIPA !" to player
stop
if arg 3 is "SVip":
if player have permission "SVip":
open chest with 1 row named "&8KIty"
wait 1 tick
Format slot 0 of playr with 48 named "Kit start" to close [execulte console comand "/kit1"]
Format slot 1 of playr with 48 named "Kit enderchest" to close [execulte console comand "/kit2"]
Format slot 2 of playr with 48 named "Kit jedzenie" to close [execulte console comand "/kit3"]
stop
else:
send "&3&l> &7Nie masz permisji do zestawu &e&lGracza!" to player
on command /kit1:
trigger:
if player have permission "gracz":
give 43 to player
give 65 to player
send "Otrzymałeś zestaw jakis" to player
stop
on command /kit2:
trigger:
if player have permission "Vip":
give 43 to player
give 65 to player
send "Otrzymałeś zestaw jakis" to player
command /kit3:
trigger:
if player have permission "SVip":
give 43 to player
give 65 to player
send "Otrzymałeś zestaw jakis" to player
on command "/kit1":
if {Avangaro.kit1.%player%} is not set:
set {Avangaro.kit1.%player%} to true
wait {@czas.kit1} second
clear {Avangaro.kit1.%player%}
stop
else:
cancel event
send "&2&l> &7Drogi &e&lGraczu &7 !" to player
send "&2&l> &7Tej komendy mozna uzywac co &4&l{@czas.gracz} &3sekund!" to player
stop
on command "/kit2":
if {Avangaro.kit2.%player%} is not set:
set {Avangaro.kit2.%player%} to true
wait {@czas.kit2} second
clear {Avangaro.kit2.%player%}
stop
else:
cancel event
send "&2&l> &7Drogi &e&lGraczu &7 !" to player
send "&2&l> &7Tej komendy mozna uzywac co &4&l{@czas.gracz} &3sekund!" to player
stop
on command "/kit3":
if {Avangaro.kit3.%player%} is not set:
set {Avangaro.kit3.%player%} to true
wait {@czas.kit3} second
clear {Avangaro.kit3.%player%}
stop
else:
cancel event
send "&2&l> &7Drogi &e&lGraczu &7 !" to player
send "&2&l> &7Tej komendy mozna uzywac co &4&l{@czas.gracz} &3sekund!" to player
stop
//Wstawiam kod w spoiler ~Myszak
Edytowane przez MyszakOdnośnik do komentarza
https://skript.pl/temat/17254-potrzebuje-pomocy-z-b%C5%82%C4%99dami-w-gui/Udostępnij na innych stronach
3 odpowiedzi na to pytanie
Rekomendowane odpowiedzi