variables:
{kod::jest} = false
options:
tag: [KOD]
ilosc: 2000
command /kod [<text>] [<text>]:
aliases: sp
trigger:
if player has permissions "kod.*":
if argument 1 is "start":
if argument 2 is set:
set {kod::text} to "%arg 2%"
send "&c----&6KOD&c----" to all players
send "&aZa 5 sekund pojawi sie tekst do przepisania. &6Kto pierwszy ten lepszy!" to all players
send "&c----&6KOD&c----" to all players
wait 1 real seconds
send "&2{@tag} &C4" to all players
wait 1 real seconds
send "&2{@tag} &C3" to all players
wait 1 real seconds
send "&2{@tag} &C2" to all players
wait 1 real seconds
send "&2{@tag} &C1" to all players
wait 1 real seconds
send "&a%{kod::text}%" to all players
set {kod::jest} to true
else:
send "&cMusisz wprowadzic tekst!"
if argument 1 is not "start":
send "&cUzycie: &a/kod start <text>"
if argument 1 is not set:
send "&a/kod start <text> &c- &aStartuje Konkurs."
else:
send "&cNie posiadasz do tego uprawnien!"
on chat:
message contains "%{kod::text}%":
if {kod::jest} is true:
cancel event
send "&c----&KOD&c----"
send "&aKonkurs wygral &6%player%&a i otrzymal &6{@ilosc}&2&l$&a!" to all players
send "&c----&6KOD&c----"
add {@ilosc} to player's balance
set {kod::jest} to false
else:
stop
else:
stop
To powinno pomóc
on command "tpa":
if player has 1 emerald block:
remove 1 emerald block from player
stop
else:
cancel event
send "&8» &cKoszt teleportacji: &91 &2emerald block" to the player
stop
Potrzebujesz tylko essentials.