on break:
if event-block is iron ore:
set {block::%type of event-block%} to location of event-block
every 2 second:
loop {block::*}:
set block at loop-value to ("%loop-index%" parsed as block)
clear {block::%loop-index%}
on portal:
if "%event.getCause()%" doesn't contain "END":
stop
if "%hour%" is not "21" or "22":
stop
if player has permission "end.omin":
stop
cancel event
send "End jest zablokowany."
command /end [<text>]:
trigger:
if "%hour%" is "21" or "22":
stop
if player don't have permission "end.omin":
stop
execute player command "warp end"
options:
chest: chest named "nazwa" with lore "opis"
key: diamond named "nazwa" with lore "opis"
command /premiumcase [<offlineplayer>] [<text>] [<integer=1>]:
permission: case.admin
permission message: nie masz uprawnien
aliases: /pc
trigger:
if arg 1 is not set:
send "/pc <gracz/all> <skrzynka/klucz> <ilosc>"
if arg 1 is "all":
if arg 2 is "chest":
add (arg 3) of {@chest} to all players
send all players title "pc" with subtitle "kazdy otrzymal..." for 3 seconds
if arg 2 is "klucz":
add (arg 3) of {@key} to all players
send all players title "pc" with subtitle "kazdy otrzymal..." for 3 seconds
set {_p} to arg 1 parsed as player
if {_p} is offline:
send "&7Ten gracz jest offline!"
stop
if arg 2 is "chest":
add (arg 3) of {@chest} to {_p}
send {_p} title "pc" with subtitle "otrzymales..." for 3 seconds
if arg 2 is "klucz":
add (arg 3) of {@key} to {_p}
send {_p} title "pc" with subtitle "otrzymales..." for 3 seconds