tells me that {tm.%player%} is 2 and 3, "tells me empyty configuration"
#--------------------------------------------------#
# Created by Tristezzah
# Name: "Avvisi ghetto"
#
#--------------------------------------------------#
options:
prefix: &4&lGhetto >>
distanza: 15
avviso1: &4&lsei stato avvisato da %arg-1% (&c1°Avviso)
avviso2: &4&lsei stato avvisato da %arg-1% (&c 2° Avviso)
avviso3: &4&lSei stato avvisato da a%arg-1% (&c3°Avviso)
command /avvisa <player>:
permission: ghetto.tm
permission message: &4&lGhetti &8>> &fNon hai il permesso!
cooldown: 10 seconds
cooldown message: &cAspetta 10 secondi prima di rifarlo!
trigger:
if arg-1 is set:
if arg-1 is online:
add 1 to {tm.%player%}
send title "&4&lAllontanati Dal ghetto!" with subtitle "&8(&8&lAnonimo&8)" to arg-1
send "&4&lGhetto >> {@avviso1}" to arg-1
send "&4&lGhetto >> &cHai inviato correttamente l'avviso a %arg-1% " to executor
send "&c&lIl giocatore %executor% ha fatto un tm (ghetto) ad %arg-1%" to console
make player execute "/ghetto ho fatto 1 tm ad %arg-1%"
if {tm.%player%} is 2:
send title "&4&lAllontanati Dal ghetto!" with subtitle "&8(&8&lAnonimo&8)" to arg-1
send "&4&lGhetto >> {@avviso2}" to arg-1
send "&4&lGhetto >> &cHai inviato correttamente l'avviso a %arg-1% " to executor
send "&c&lIl giocatore %executor% ha fatto un tm (ghetto) ad %arg-1%" to console
make player execute "/ghetto ho fatto 2 tm ad %arg-1%"
if {tm.%player%} is 3:
send title "&4&lAllontanati Dal ghetto!" with subtitle "&8(&8&lAnonimo&8)" to arg-1
send "&4&lGhetto >> {@avviso3}" to arg-1
send "&4&lGhetto >> &cHai inviato correttamente l'avviso a %arg-1% " to executor
send "&c&lIl giocatore %executor% ha fatto un tm (ghetto) ad %arg-1%" to console
make player execute "/ghetto ho fatto 3 tm ad %arg-1%"
set {tm.%player%} to 0
command /resettm <player>:
permission: tm.reset
trigger:
send "&2Fatto!" to executor
send "&7I tuoi tm sono stati resettati da un admin" to arg 1
set {tm.%arg 1%} to 0
#--------------------------------------------------#
# Created by Tristezzah
# Name: "Avvisi ghetto"
#
#--------------------------------------------------#
options:
prefix: &4&lGhetto >>
distanza: 15
avviso1: &4&lsei stato avvisato da %arg-1% (&c1°Avviso)
avviso2: &4&lsei stato avvisato da %arg-1% (&c 2° Avviso)
avviso3: &4&lSei stato avvisato da a%arg-1% (&c3°Avviso)
command /avvisa <player>:
permission: ghetto.tm
permission message: &4&lGhetti &8>> &fNon hai il permesso!
cooldown: 10 seconds
cooldown message: &cAspetta 10 secondi prima di rifarlo!
trigger:
if arg-1 is set:
if arg-1 is online:
add 1 to {tm.%player%}
send title "&4&lAllontanati Dal ghetto!" with subtitle "&8(&8&lAnonimo&8)" to arg-1
send "&4&lGhetto >> {@avviso1}" to arg-1
send "&4&lGhetto >> &cHai inviato correttamente l'avviso a %arg-1% " to executor
send "&c&lIl giocatore %executor% ha fatto un tm (ghetto) ad %arg-1%" to console
make player execute "/ghetto ho fatto 1 tm ad %arg-1%"
if {tm.%player%} is 2:
send title "&4&lAllontanati Dal ghetto!" with subtitle "&8(&8&lAnonimo&8)" to arg-1
send "&4&lGhetto >> {@avviso2}" to arg-1
send "&4&lGhetto >> &cHai inviato correttamente l'avviso a %arg-1% " to executor
send "&c&lIl giocatore %executor% ha fatto un tm (ghetto) ad %arg-1%" to console
make player execute "/ghetto ho fatto 2 tm ad %arg-1%"
if {tm.%player%} is 3:
send title "&4&lAllontanati Dal ghetto!" with subtitle "&8(&8&lAnonimo&8)" to arg-1
send "&4&lGhetto >> {@avviso3}" to arg-1
send "&4&lGhetto >> &cHai inviato correttamente l'avviso a %arg-1% " to executor
send "&c&lIl giocatore %executor% ha fatto un tm (ghetto) ad %arg-1%" to console
make player execute "/ghetto ho fatto 3 tm ad %arg-1%"
set {tm.%player%} to 0
command /resettm <player>:
permission: tm.reset
trigger:
send "&2Fatto!" to executor
send "&7I tuoi tm sono stati resettati da un admin" to arg 1
set {tm.%arg 1%} to 0