Ok.
Panie Boże, ratuj mnie. Nie żeby coś, ale jest coś takiego jak pętla. Zamiast pisać kilkanaście linijek, użyj pętli
command /addrul [<text>]:
aliases: /createrul
trigger:
if player is op:
if arg 1 is set:
if {ruletki::%arg 1%} is not true:
send "&aStworzyłeś ruletkę &2%arg 1%&a!" to player
set {ruletki::%arg 1%} to true
set {rulname::%arg 1%} to arg 1
set {klucz::%arg 1%} to tripwire hook named "&eKlucz do ruletki &6%arg 1%"
set {keyname::%arg 1%} to arg 1
else:
send "&cTaka ruletka już istnieje!" to player
else:
send "&cNie poprawnie użyta komenda" to player
else:
send "&cNie masz do tego uprawnień!" to player
Pls nie. Nie rób drzew ifów, zamiast tego zrób coś w stylu:
command /komenda:
trigger:
if player is not op:
send "Nie masz uprawnień"
stop
if...
on inventory click:
if name of clicked inventory is "&7Otwieranie...":
cancel event
on inventory click:
if name of player's current inventory is "&7Otwieranie...":
if click type is left mouse button with shift or right mouse button with shift:
cancel event
stop
on inventory click:
if name of clicked inventory is "&ePodgląd Ruletki":
cancel event
on inventory click:
if name of player's current inventory is "&ePodgląd Ruletki":
if click type is left mouse button with shift or right mouse button with shift:
cancel event
stop
Ale bardzo cię proszę, nie rób kilku eventów tylko daj wszystko do jednego, to nie ma sensu
on load:
send "&e&lScript by &6&lIgorM2008" to player
Tu się domyśl.
Oraz... Zrób WSZYSTKO w jednej komendzie, po co kilka?
Ogólnie to skrypt nie ma najlepszego kodu, więc postaraj się go poprawić.