Events
zHomes triggers a few events. You can find a list with all the events on this page.
Last updated
Was this helpful?
zHomes triggers a few events. You can find a list with all the events on this page.
Last updated
Was this helpful?
Called when /sethome command is executed by a player
Called when /delhome command is executed by a player\
Called when /home command is executed by a player
Called when /sethome (Home) command is executed by a player
Called when /delhome (Home) command is executed by a player
Called when /homes command is executed by a player
Called when /zhomes command is executed by a playe
Called when a player is teleported to a home
Example of a class listening to the PreExecuteSethomeCommandEvent and ExecuteSethomeCommandEvent and canceling it if the player's name is yLeoft (Or if the home's name is test)
On ExecuteSethomeCommandEvent it also sets the home to test if it's not the test home