on death:
Victim is a player
Attacker is a player
if victim is not attacker:
execute console command "jetonat %attacker% 10"
send "&a%victim% &aadlı oyuncuyu öldürerek &f10 &ajeton kazandın!" to attacker
options:
prefix: &3Jeton &8»
first join:
set {jeton.%player%} to 0
command /jeton [<TEXT>] [<PLAYER>] [<int>]:
usage: /jeton
permission: jeton.oyuncu
trigger:
if arg 1 is not set:
send "&6{@prefix} &6Mevcut Jeton: &a%{jeton.%player%}%" to player
else:
if arg 1 is "gönder":
if player is arg 2:
send "&6{@prefix} &2Kendinize para yollayamazsınız." to player
stop
else:
if arg 3 is smaller than 1:
send "&6{@prefix} &2Lütfen 0'dan büyük bir sayı giriniz." to player
stop
else:
if {jeton.%player%} + 1 is greater than arg 3:
remove arg 3 from {jeton.%player%}
add arg 3 to {jeton.%arg 2%}
send "&6{@prefix} &a%arg 2% &aadlı oyuncuya &f%arg 3% &fJeton &abaşarıyla gönderildi." to player
send "&6{@prefix} &a%player% &aadlı oyuncu size &f%arg 3% &fJeton&a gönderdi." to arg 2
else:
send "&6{@prefix} &cYetersiz Jeton!" to player
stop
command /coincheck <player>:
usage: /coincheck <oyuncu>
permission: jeton.admin
trigger:
send "&6{@prefix} &2%arg 1% adlı oyuncunun %{jeton.%arg 1%}% jetonu bulunmaktadır." to player
command /jetonat <player> <int>:
permission: jeton.admin
usage: /jetonat <oyuncu> <miktar>
trigger:
if arg 1 is player:
send "&6{@prefix} &2Kendinize %arg 2% jeton gönderdiniz." to player
add arg 2 to {jeton.%arg 1%}
else:
add arg 2 to {jeton.%arg 1%}
send "&6{@prefix} &f%arg 1% &aadlı oyuncuya &f%arg 2% &aJeton başarıyla gönderildi." to player
send "&6{@prefix} &f%player% &aadlı oyuncu size &f%arg 2% &aJeton gönderdi." to arg 1
command /jetonsıfırla <player>:
permission: jeton.admin
usage: /jetonsıfırla <oyuncu>
trigger:
set {jeton.%arg 1%} to 0