Wybacz, że odpisuje po takim czasie.
Chodzi mi o to, że jak tam jest " set {rank2::%player%} to {rank3::%player%}/10" to żeby zapamiętało, że to jest 1/10 ranku2
i że jeśli przekracza 50 to odejmuje 50 a jeśli nie to odejmuje 1/10 ranku gracza.
Używałem tabu nie spacji, tu nie mg dać.
Skrypt:
command /gui [<player>]:
trigger:
set {_gui} to a new chest inventory with 1 row with name "Testowe_gui"
set slot 4 of {_gui} to stone
open {_gui} to %arg 1%
on inventory click:
if name of event-inventory is "Testowe_gui":
if index of event-slot = 4:
cancel event
send "Testowy komunikat"
używam pluginu Skript (wersja 2.3.2)
server jest na 1.17.1
Silnik serwera to spigot
Błąd wyskakuje w linice 5 pisze, że nie rozumie kontekstu/efektu.