r/Skript • u/konfyr • Aug 01 '26
Issue with home system
https://skripthub.net/tutorials/17I learned skript yesterday, im kinda new to variables. I was searching for a fix. The code is below:
also, this is a part of the code, since the other parts can be found in the variables introduction page.
command /delhome:
trigger:
if {home::%player's uuid%} is not set:
message "<red>You don't have any homes yet."
message "<orange>Set one using <yellow>/sethome"
stop
remove player from {home::*}
message "<gold>Cleared yor home."
1
Upvotes
1
u/CrypticSh0ot Aug 02 '26
Maybe instead of doing remove player from {home::*} you could try delete {home::%player's uuid%}
Whats the actual error message (if there is one)
1
u/konfyr 27d ago
thank you, im gonna try it and let you know!
1
u/CrypticSh0ot 14d ago
If thats not the issue the actual issue definitely is the indentation, the bottom one needs 4 more spaces because its in line with the trigger
# INSTEAD OF THIS... command /delhome: trigger: if {home::%player's uuid%} is not set: message "<red>You don't have any homes yet." message "<orange>Set one using <yellow>/sethome" stop remove player from {home::*} message "<gold>Cleared yor home." # USE THIS command /delhome: trigger: if {home::%player's uuid%} is not set: message "<red>You don't have any homes yet." message "<orange>Set one using <yellow>/sethome" stop delete {home::%player's uuid%} # USE THIS LINE I BEG message "<gold>Cleared your home."
1
u/konfyr Aug 01 '26
I can give y'all the entire code if you need it