donsuzturk
# Gereksinimler:
# - Skript
# - SkBee (enchant, PAPI placeholder desteği)
# - PlaceholderAPI
options:
ödül-miktarı: 1
ödül-ismi: Arena Ödülü
on load:
send "&a[ArenaÖdülü] Skript yüklendi."
# Optional: İlk yüklemede tüm oyunculara 0 set edebilirsin
on death of player:
attacker is a player
victim is in world "arena" # Eğer arena farklı dünyada değilse bu satırı sil
attacker is not victim
# Ödül ver
loop {@ödül-miktarı} times:
give named diamond named "&b{@ödül-ismi}" to attacker
enchant last given item with mending level 1
# Veriyi kaydet
add {@ödül-miktarı} to {ödül::%uuid of attacker%}
send "&a+{@ödül-miktarı} &b{@ödül-ismi} &akazandın!" to attacker
# PlaceholderAPI için custom placeholder tanımı
on skript load:
register placeholder "arenaodulu_miktar" with refresh rate 1 second:
return "%{ödül::%uuid of player%}%"
# Test komutu (isteğe bağlı)
command /ödültest:
trigger:
send "&fSenin Arena Ödülü sayın: &b%{ödül::%uuid of player%}%"
%skript_arenaodulu_miktar%
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!