Siema, czemu ten skrypt nie działa? Nie ma żadnych błędów..... Jak użyje komendy /zglos pierwsze gui się pojawia, i jak klikne zglos budowle to drugie gui się nie pojawia....
KOD:
command /zglos [<player>]:
permission: zglos.gracz
permission message: &aNie Masz permisji do (%permission%)
trigger:
wait 1 ticks
open chest with 1 rows named "&4Zglos!" to player
format slot 1 of player with 1 of redstone block of unbreaking 10 named "&4&lZglos Budowle %arg 1%" to close then run [execute player command "zglos1 %arg 1%"]
format slot 7 of player with 1 of diamond of unbreaking 10 named "&b&lZglos Gracza %arg 1%" to close then run [execute player command "zglosgracza %arg 1%"]
command /zglos1 [<player>]:
permission: zglos.gracz
permission message: &aNie Masz permisji do (%permission%)
trigger:
wait 1 ticks
open chest with 2 rows named "&4Zglos Budowle!" to player
format slot 0 of player with 1 of paper of unbreaking 10 named "&4&lGrif %arg 1%" to close then run [execute player command "zglosbudowle %arg 1%"]
format slot 1 of player with 1 of paper of unbreaking 10 named "&b&l1 %arg 1%" to close then run [execute player command "zglosbudowle1 %arg 1%"]
format slot 2 of player with 1 of paper of unbreaking 10 named "&b&l2 %arg 1%" to close then run [execute player command "zglosbudowle2 %arg 1%"]
format slot 3 of player with 1 of paper of unbreaking 10 named "&b&l3 %arg 1%" to close then run [execute player command "zglosbudowle3 %arg 1%"]
format slot 4 of player with 1 of paper of unbreaking 10 named "&b&l4 %arg 1%" to close then run [execute player command "zglosbudowle4 %arg 1%"]
format slot 5 of player with 1 of paper of unbreaking 10 named "&b&l5 %arg 1%" to close then run [execute player command "zglosbudowle5 %arg 1%"]
format slot 6 of player with 1 of paper of unbreaking 10 named "&b&l6 %arg 1%" to close then run [execute player command "zglosbudowle6 %arg 1%"]
format slot 7 of player with 1 of paper of unbreaking 10 named "&b&l7 %arg 1%" to close then run [execute player command "zglosbudowle7 %arg 1%"]
format slot 8 of player with 1 of paper of unbreaking 10 named "&b&l8 %arg 1%" to close then run [execute player command "zglosbudowle8 %arg 1%"]
command /zglosbudowle <text>:
usage: &5/zglosbudowle <treść zgłoszenia>
trigger:
loop all players:
if loop-player has permission "zglos.budowla":
send "&7[&aZGLOSZENIA&7]&6 NOWE ZGLOSZENIE PRZEZ %player%" to loop-player
set {req.num} to {req.num} +1
set {req.%{req.num}%} to "&7[&aZGLOSZENIA&7] |&6%player%&7| %arg 1% Zgloszenie Budowli! &1(&2Grif&1)"
log "|%player%| %arg 1%" to "zglos.log"
on join:
if player has permission "modreq.budowla":
if {req.num} is "0":
exit
else:
send "&7[&aZGLOSZENIA&7]&6 %{req.num}% NIE ODCZYTANE ZGŁOSZENIA" to player
stop
command /zglosgracza <text>:
usage: &5/zglosgracza <treść zgłoszenia>
trigger:
loop all players:
if loop-player has permission "zglos.gracza":
send "&7[&aZGLOSZENIA&7]&6 NOWE ZGLOSZENIE PRZEZ %player%" to loop-player
set {req.num} to {req.num} +1
set {req.%{req.num}%} to "&7[&aZGLOSZENIA&7] |&6%player%&7| %arg 1% Zgloszenie Gracza!"
log "|%player%| %arg 1%" to "zglos.log"
on join:
if player has permission "modreq.budowla":
if {req.num} is "0":
exit
else:
send "&7[&aZGLOSZENIA&7]&6 %{req.num}% NIE ODCZYTANE ZGŁOSZENIA" to player
stop
command /check:
trigger:
if player has permission "zglos.budowle":
if "%{req.num}%" is "0":
send "&7[&aZGLOSZENIA&7]&6 WSZYSTKIE ZGLOSZENIA ZOSTAŁY ODCZYTANE" to player
exit
send "==============================" to player
send "%{req.%{req.num}%}%" to player
send "==============================" to player
delete {req.%{req.num}%}
set {req.num} to {req.num} -1
if "%{req.num}%" is "0":
send "&7[&aZGLOSZENIA&7]&6 WSZYSTKIE ZGLOSZENIA ZOSTALY ODCZYTANE" to player
exit
send "&7[&aZGLOSZENIA&7]&6 ZOSTAŁO %{req.num}% NIE ODCZYTANYCH ZGŁOSZEN" to player
stop
else:
send "&7[&aZGLOSZENIA&7]&c Nie masz uprawnien"
command /administracja:
trigger:
loop all players:
loop-player has permission "zglos.administracja":
{admin.list.%loop-player%} is true:
add loop-player to {_admins::*}
size of {_admins::*} is 0:
send "&cAktualnie nie ma nikogo z administracji."
#send "&aAdministracja online (%size of {_admins::*}%):&7 %{_admins::*}%"
else:
send "&aAdministracja online (%size of {_admins::*}%):&7 %{_admins::*}%"
command /ukryj [<text>]:
trigger:
player has permission "zglos.ukryj":
arg 1 is "on":
set {admin.list.%player%} to true
send "&aZostales widoczny na liscie administracji."
arg 1 is "off":
set {admin.list.%player%} to false
send "&cZostales ukryty na liscie administracji."
else:
send "&cNie masz uprawnien."
stop
Pytanie
kondziu2k 0
Siema, czemu ten skrypt nie działa? Nie ma żadnych błędów..... Jak użyje komendy /zglos pierwsze gui się pojawia, i jak klikne zglos budowle to drugie gui się nie pojawia....
KOD:
command /zglos [<player>]:
permission: zglos.gracz
permission message: &aNie Masz permisji do (%permission%)
trigger:
wait 1 ticks
open chest with 1 rows named "&4Zglos!" to player
format slot 1 of player with 1 of redstone block of unbreaking 10 named "&4&lZglos Budowle %arg 1%" to close then run [execute player command "zglos1 %arg 1%"]
format slot 7 of player with 1 of diamond of unbreaking 10 named "&b&lZglos Gracza %arg 1%" to close then run [execute player command "zglosgracza %arg 1%"]
command /zglos1 [<player>]:
permission: zglos.gracz
permission message: &aNie Masz permisji do (%permission%)
trigger:
wait 1 ticks
open chest with 2 rows named "&4Zglos Budowle!" to player
format slot 0 of player with 1 of paper of unbreaking 10 named "&4&lGrif %arg 1%" to close then run [execute player command "zglosbudowle %arg 1%"]
format slot 1 of player with 1 of paper of unbreaking 10 named "&b&l1 %arg 1%" to close then run [execute player command "zglosbudowle1 %arg 1%"]
format slot 2 of player with 1 of paper of unbreaking 10 named "&b&l2 %arg 1%" to close then run [execute player command "zglosbudowle2 %arg 1%"]
format slot 3 of player with 1 of paper of unbreaking 10 named "&b&l3 %arg 1%" to close then run [execute player command "zglosbudowle3 %arg 1%"]
format slot 4 of player with 1 of paper of unbreaking 10 named "&b&l4 %arg 1%" to close then run [execute player command "zglosbudowle4 %arg 1%"]
format slot 5 of player with 1 of paper of unbreaking 10 named "&b&l5 %arg 1%" to close then run [execute player command "zglosbudowle5 %arg 1%"]
format slot 6 of player with 1 of paper of unbreaking 10 named "&b&l6 %arg 1%" to close then run [execute player command "zglosbudowle6 %arg 1%"]
format slot 7 of player with 1 of paper of unbreaking 10 named "&b&l7 %arg 1%" to close then run [execute player command "zglosbudowle7 %arg 1%"]
format slot 8 of player with 1 of paper of unbreaking 10 named "&b&l8 %arg 1%" to close then run [execute player command "zglosbudowle8 %arg 1%"]
command /zglosbudowle <text>:
usage: &5/zglosbudowle <treść zgłoszenia>
trigger:
loop all players:
if loop-player has permission "zglos.budowla":
send "&7[&aZGLOSZENIA&7]&6 NOWE ZGLOSZENIE PRZEZ %player%" to loop-player
set {req.num} to {req.num} +1
set {req.%{req.num}%} to "&7[&aZGLOSZENIA&7] |&6%player%&7| %arg 1% Zgloszenie Budowli! &1(&2Grif&1)"
log "|%player%| %arg 1%" to "zglos.log"
on join:
if player has permission "modreq.budowla":
if {req.num} is "0":
exit
else:
send "&7[&aZGLOSZENIA&7]&6 %{req.num}% NIE ODCZYTANE ZGŁOSZENIA" to player
stop
command /zglosgracza <text>:
usage: &5/zglosgracza <treść zgłoszenia>
trigger:
loop all players:
if loop-player has permission "zglos.gracza":
send "&7[&aZGLOSZENIA&7]&6 NOWE ZGLOSZENIE PRZEZ %player%" to loop-player
set {req.num} to {req.num} +1
set {req.%{req.num}%} to "&7[&aZGLOSZENIA&7] |&6%player%&7| %arg 1% Zgloszenie Gracza!"
log "|%player%| %arg 1%" to "zglos.log"
on join:
if player has permission "modreq.budowla":
if {req.num} is "0":
exit
else:
send "&7[&aZGLOSZENIA&7]&6 %{req.num}% NIE ODCZYTANE ZGŁOSZENIA" to player
stop
command /check:
trigger:
if player has permission "zglos.budowle":
if "%{req.num}%" is "0":
send "&7[&aZGLOSZENIA&7]&6 WSZYSTKIE ZGLOSZENIA ZOSTAŁY ODCZYTANE" to player
exit
send "==============================" to player
send "%{req.%{req.num}%}%" to player
send "==============================" to player
delete {req.%{req.num}%}
set {req.num} to {req.num} -1
if "%{req.num}%" is "0":
send "&7[&aZGLOSZENIA&7]&6 WSZYSTKIE ZGLOSZENIA ZOSTALY ODCZYTANE" to player
exit
send "&7[&aZGLOSZENIA&7]&6 ZOSTAŁO %{req.num}% NIE ODCZYTANYCH ZGŁOSZEN" to player
stop
else:
send "&7[&aZGLOSZENIA&7]&c Nie masz uprawnien"
command /administracja:
trigger:
loop all players:
loop-player has permission "zglos.administracja":
{admin.list.%loop-player%} is true:
add loop-player to {_admins::*}
size of {_admins::*} is 0:
send "&cAktualnie nie ma nikogo z administracji."
#send "&aAdministracja online (%size of {_admins::*}%):&7 %{_admins::*}%"
else:
send "&aAdministracja online (%size of {_admins::*}%):&7 %{_admins::*}%"
command /ukryj [<text>]:
Edytowane przez kondziu2ktrigger:
player has permission "zglos.ukryj":
arg 1 is "on":
set {admin.list.%player%} to true
send "&aZostales widoczny na liscie administracji."
arg 1 is "off":
set {admin.list.%player%} to false
send "&cZostales ukryty na liscie administracji."
else:
send "&cNie masz uprawnien."
stop
Odnośnik do komentarza
Udostępnij na innych stronach
7 odpowiedzi na to pytanie
Rekomendowane odpowiedzi