Essaies ça :
command /sethome [<text>]:
permission: essentials.sethome
permission message: {@Noperms}
aliases: essentials:sethome
executable by: players
usage: &cError &6>> &f/sethome [home]
trigger:
if arg 1 is not set:
send "&cError &6>> &f/sethome [home]"
stop
if {homes.%player%} = 3:
if sender has permission "essentials.home.3" or "essentials.*":
message "&7You cannot set more than 3 homes!"
stop
if {home.%player%::%arg 1%} is set:
send "&7You already have the home &c%arg 1%&7."
if {home.%player%::%arg 1%} is not set:
add 1 to {homes.%player%}
send "&7Home create &c%arg 1%&7." to player
set {home.%player%::%arg 1%} to location of player
set {homename.%player%::%arg 1%} to arg 1
stop
Bien sûr, quand tu auras fais la commande /delhome, il faudra que tu mettes :
remove 1 to {homes.%player%}
Cordialement, Mr_Tival