GUI with homes

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

MaxB

Member
Jun 1, 2022
4
0
1
53
Hello,
I'm looking for a skript GUI who could list my homes on minecraft.
so i could teleport to them more easily
all skripts i have found does not work as i want

The problem is: I have several homes created before by the command /sethome

ex:
/sethome place
/sethome manor
/sethome garden
.....


Is there any variable or placeholder to retrieve homes i've already created ?
It is possible to view the entire list of my homes with the /homes command, so maybe it is possible to get them ?

i would like a skript like this:

-on right click on a book:
- open a chest gui
-loop player's homes
-set 1st slot to player's 1st home then click on it and be teleported to
-set 2nd slot to player's 2nd home then click on it and be teleported to
.....
.....
-set last slot to last home then click on it and be teleported to


Thank you in advance
[doublepost=1654088915,1654080075][/doublepost]I've found this placeholder :

%essentials_home_<number>%

It works but only number 1 to 9....
I have 30+ homes but after number 10 it says <none>
 
You could use skript-reflect to hook into essentials and do something like this:

Code:
import:
    org.bukkit.Bukkit

command /test:
    trigger:
        set {_essentials} to Bukkit.getServer().getPluginManager().getPlugin("Essentials")
        if {_essentials} is set:
            set {_user} to {_essentials}.getUser(player's uuid)
            set {_homes} to {_user}.getHomes()

The homes varible should contain a array of strings.

NOTE: I haven't tested this so it may nok work.
 
Status
Not open for further replies.