Hi,
i need to setup Event/competention skript. I need command /eventstart <Event type> <Win>, /eventend <Winner>. I need to automaticly give the Essentials eco Win to the winner. My code looks like this (variable vyhra is the win variable)
i need to setup Event/competention skript. I need command /eventstart <Event type> <Win>, /eventend <Winner>. I need to automaticly give the Essentials eco Win to the winner. My code looks like this (variable vyhra is the win variable)
Code:
variables:
{vyhra} = 0
command /event:
aliases: /eventy, /eventmain, eventinfo
permission: simocraft.event.help
trigger:
send "&b----------------( &a&lEventy &f&b)----------------" to player
send "" to player
send " &b/eventjoin &f-Pripojit se na event" to player
send " &b/eventleave &f-Odpojit se z eventu" to player
send " &b/eventstart [Zprava]&f -Zacit a oznamit event" to player
send " &b/eventend [Vyherce] &f-Ukoncit event" to player
send "" to player
send " &bTvurce pluginu: &fKolombooo"
send ""
send "&b------------------------------------------" to player
command /eventjoin:
permission: simocraft.event.join
trigger:
send "&7[&a&lSimoCraft&7]&f Pripojuji na event..."
wait 20 ticks
make player execute command "/warp event"
send "&7[&a&lSimoCraft&7]&f Vítej na eventu"
broadcast "&7[&a&lSimoCraft&7]&f %player% se pripojil na event"
command /eventleave:
permission: simocraft.event.leave
trigger:
make player execute command "/spawn"
send "&7[&a&lSimoCraft&7]&f Odpojil si se z eventu"
broadcast "&7[&a&lSimoCraft&7]&f %player% se odpojil z eventu"
command /eventstart <text> <text>:
permission: simocraft.event.start
trigger:
make player execute command "/setwarp event"
broadcast "&7[&a&lSimoCraft&7] &3&lEvent! &f%colored arg-1% &a- &f/eventjoin - &9&lVyhra: &a%arg-2% &fmoney"
set {_vyhra} to %arg-2%
command /eventend <text>:
description: "&3Pouziti: &f/eventend <vitez>"
permission: simocraft.event.end
trigger:
broadcast "&7[&a&lSimoCraft&7] &3Event ukoncen! &fWinner: &a%colored arg-1%"
send "&cNezapomen hrace odmenit vyhrou jakou si uvedl :) &a/eco give %arg-1% <Vyhra>" to player
make player execute command "/delwarp event"
execute console command "/eco give %arg-1% {vyhra}"