GoBoiee74 Posted February 27 Share Posted February 27 # Set home for player command /sethome [<text>]: description: "Set your home" trigger: if arg-1 is not set : send "" send "&9&lXBUST &f| You have to set home name" to player send "" else: if {home::%player's uuid%::%arg-1%} is set: send "" send "&9&lXBUST &f| This home name already exist. Try use another name" send "" else: set {home::%player's uuid%::%arg-1%} to location of player set {homenames::%player's uuid%::%arg-1%} to arg-1 send "" send "&9&lXBUST &f| Your home %arg-1% was set" to player send "" # Delete players home command /delhome [<text>]: trigger: if arg-1 is not set: send "" send "&9&lXBUST &f| You have to define your home name" to player send "" else: if {home::%player's uuid%::%arg-1%} is not set: send "" send "&9&lXBUST &f| You have to define valid home name" to player send "" else: delete {home::%player's uuid%::%arg-1%} delete {homenames::%player's uuid%::%arg-1%} send "" send "&9&lXBUST &f| Your home %arg-1% was deleted" to player send "" #List player's homes command /listhomes: trigger: if {homenames::%player's uuid%::*} is not set: send "&9&lXBUST &f| You have no home set" else: send "&9&lXBUST &f| Your homes: &a&l%{homenames::%player's uuid%::*}%" # Teleport player to his home command /home [<text>]: trigger: if arg-1 is not set: send "" send "&9&lXBUST &f| You have to define home name" to player send "" else: if {home::%player's uuid%::%arg-1%} is not set: send "" send "&9&lXBUST &f| You have to define valid home name" to player send "" else: teleport player to {home::%player's uuid%::%arg-1%} send "" send "&9&lXBUST &f| You've been teleported to %arg-1%&7 home" send "" command /homes: trigger: stop command /homes: trigger: set Link to comment Share on other sites More sharing options...
Znyx Posted March 9 Share Posted March 9 Do something like: if length of {home::%player's uuid%::*} > 2: send "You already have 3 homes." to player Haven't tested it or anything though. Link to comment Share on other sites More sharing options...
SBV3 Posted March 9 Share Posted March 9 Oh i've played on this server but this should also work: if {homes::%player's uuid%} is >= 3: send "3 homes already set!" Rank: [PRO] Server Dev Skripter Link to comment Share on other sites More sharing options...
ApexSplat Posted March 9 Share Posted March 9 6 hours ago, SBV3 said: Oh i've played on this server but this should also work: if {homes::%player's uuid%} is >= 3: send "3 homes already set!" remove the is then it will work Discord: Dead#6905 Love anime! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now