command /idban <text> <offlineplayer>:
trigger:
if {ban::%arg-1%} is set:
send "&cBan o tym id juz istnieje"
stop
ban arg-2
set {ban::%arg-1%} to arg-2
command /idbana <text>:
trigger:
if {ban::%arg-1%} is not set:
send "&cBan o tym id nie istnieje"
stop
send "&cBan o id &e%arg-1% &cnalezy do &e%{ban::%arg-1%}%"
czemu tak chcesz robić, to tylko zaspami konsolę bez sensu, jak chcesz dać nazwę lub lore to robisz tak:
add golden apple named "nazwa" with lore "lore" and "2 linijka" to player
Nie warto robić tego skryptem, gdy masz takie pluginy jak np. https://www.spigotmc.org/resources/tab-1-7-x-1-16-5-free-version.57806/, które są 100 razy wydajniejsze
Nie ma błędów
on command:
if size of {commands::*} >= 27:
remove first element of {commands::*} from {commands::*}
remove first element of {commandsX::*} from {commandsX::*}
add full command to {commands::*}
add name of player to {commandsX::*}
command /cmds:
trigger:
open chest inventory named "&cKomendy" with 3 rows to player
loop (size of {commands::*}) times:
set slot (loop-number - 1) of player's current inventory to skull of ("%{commandsX::%loop-number%}%" parsed as offlineplayer) named "%{commandsX::%loop-number%}%" with lore "/%{commands::%loop-number%}%"
on inventory click:
name of player's inventory = "&cKomendy"
clicked inventory is not player's inventory
cancel event
on command:
if size of {commands::*} >= 27:
remove first element of {commands::*}
remove first element of {commandsX::*}
add full command to {commands::*}
add "%name of player%" to {commandsX::*}
command /gui:
trigger:
open chest inventory named "sss" with 3 rows to player
loop (size of {commands::*} times:
set slot (loop-number - 1) of player's current inventory to skull of ("%{commandsX::%loop-number%}%" parsed as offlineplayer) named "%{commandsX::%loop-number%}%" with lore "%{commands::%loop-number%}%"
przetestuj
command /hard:
trigger:
if amount of diamonds in player's inventory >= 5:
if difficulty of "world" is hard:
send "&cAktualnie jest tryb hard!"
else:
remove 5 diamonds from player
set difficulty of "world" to hard
wait 5 minutes
set difficulty of "world" to easy
else:
send "&cNie masz 5 diamentów!"
A teraz?
command /hard:
trigger:
if amount of diamonds in player's inventory >= 5:
if difficulty is not hard:
remove 5 diamonds from player
set difficulty to hard
wait 5 minutes
set difficulty to easy
else:
send "&cAktualnie jest tryb hard!"
else:
send "&cNie masz 5 diamentów!"