a no tak... to nowe lore
on death of player:
set {_i} to xp bottle named "&6Exp gracza %victim%" with lore "&7Xp: %event.getDroppedExp()%"
event.setDroppedExp(0)
add {_i} to drops
on right click:
if name of player's tool contain "&6Exp gracza ":
cancel event
set {_n} to uncolored line 1 of lore of player's tool
replace all "Xp: " with "" in {_n}
remove player's tool from player
add ({_n} parsed as number) to player's exp
no to jak się tak orientujesz to dlaczego nie napiszesz sam
on death of player:
set {_i} to xp bottle named "&6Exp gracza %victim%" with lore "&7Xp: %event.getDroppedExp()%"
event.setDroppedExp(0)
add {_i} to drops
on right click:
if name of player's tool contain "&6Exp gracza ":
cancel event
set {_n} to uncolored lore of player's tool
replace all "Xp: " with "" in {_n}
remove player's tool from player
add ({_n} parsed as number) to player's exp
options:
czas: 30 seconds
on command:
if command is "fly":
if {fly::%player%} is not set:
set {fly::%player%} to now
stop
set {_check} to difference between {fly::%player%} and now
if {_check} is greater than ("{@czas}" parsed as timespan):
set {fly::%player%} to now
stop
cancel event
send "&cMusisz odczekac &730 sekund &czanim ponownie tego uzyjesz!"
spigotpeper ma już wbudowany w którymś tam pliku bukiit/spigot/peper tylko musisz zobaczyć jak optymalnie ustawić bo trochę laguje na normalnych ustawieniach przy dużej ilości graczy
a jak nie to spróbuj https://www.spigotmc.org/resources/anti-xray.68465/
Mam inny swój skrypt po wpisaniu komendy /regulamin Wyświetla się regulamin na czacie oczywiscie regulamin można modyfikować wystarczy zmienić tekst
command /regulamin:
trigger:
send "&3=====&9REGULAMIN&3=====" to player
send "&61.Nie Wolno Uzywac Cheatow Grozi Za To Ban" to player
send "&62.Nie Wolno Tworzyc MultiKont" to player
send "&63." to player
send "&64." to player
send "&65." to player
send "&66." to player
send "&67." to player
send "&68." to player
send "&3==========" to player