HyperScript
Docs

← All of the Docs HyperPlots

Coming and going HyperPlots

eventon plot enter:HyperPlots

Runs when a player walks, or is taken, into a plot. player is who came

on plot enter:
    if {_owner} is player.name:
        send "&aWelcome home."
eventon plot leave:HyperPlots

Runs when they go out of one: onto the road, into another plot, or to another world

on plot leave:
    send action bar "&7You left plot %{_plot}%" to player
Guide and examples
on plot enter:
    if {_owner} is player.name:
        send "&aWelcome home."

on plot leave:
    send action bar "&7You left plot %{_plot}%" to player
SyntaxEffect
on plot enter:Runs when a player walks, or is taken, into a plot. player is who came
on plot leave:Runs when they go out of one: onto the road, into another plot, or to another world
  • Inside on plot enter: {_plot} is the plot's number as PlotSquared writes it (3;-2), {_owner} the name of its owner, unset for a plot nobody has claimed, and {_owners} all of them as a list. on plot leave: has {_plot}, the one that was left.
  • Walking from one plot straight into the next runs on plot leave: for the first and then on plot enter: for the second.
  • The blocks run after the step is taken, so a script cannot stop somebody from walking in; PlotSquared's own flags and deny are what keep players out.