on load:
set {drop::*} to diamond and iron ingot and gold ingot
on break of stone:
chance of 50%
set {_i} to random element of {drop::*}
drop {_i} at player
send "&7Znalazles: &6%{_i}%"
on command:
if player has permission "vip":
stop
if command is "spawn":
if player's balance >= 5:
remove 5 from player's balance
else:
send "&cNie masz pieniędzy na teleport."
cancel event
on command "helpop":
cancel event
send "&cPoprawne uzycie &a/zglos <tresc zgloszenia>"
variables:
{cooldown::%player%} = false
command /zglos [<text>]:
trigger:
if arg 1 is set:
if {cooldown::%player%} is false:
send "&c&lZGLOSZENIE &7Wyslales wiadomosc o tresci: &b%arg 1%"
loop all players:
if loop-player has permission "admin.zgloszenie":
send "&4[ZGLOSZENIE]&c %player%&8: &6%arg 1%" to loop-player
set action bar of loop-player to "&cZgloszenie od gracza &7%player%"
set {cooldown::%player%} to true
wait 1 minute
set {cooldown::%player%} to false
else:
send "&cZglaszac mozna co 1 minute!"
else:
send "&cPoprawne uzycie: &a/zglos <tresc zgloszenia>" to player
on join:
set {cooldown::%player%} to false
... a tamto bo już masz taką komende zdefiniowaną
command /book:
trigger:
set {_book} to a new book
add text component (new text component with "&6&lPomoc%nl% &8Tutaj znajdziesz pomoc!") to book {_book}
open book {_book} to player
Skellett