HyperScript
Docs

← All of the Docs HyperGuard

When WorldGuard says no HyperGuard

eventon guard build denied:HyperGuard

WorldGuard has stopped a player breaking or placing a block · {_region} (the region there, empty in the wilderness), {_action} (break or place), {_location}

on guard build denied:
    send action bar "&cYou cannot build in %{_region}%" to player

What this event gives a script

In the blockWhat it is
{_region}The region there, empty in the wilderness
{_action}break or place
{_location}The location
eventon guard pvp denied:HyperGuard

WorldGuard has stopped one player hurting another; the player is the attacker · {_region}, {_victim}

on guard pvp denied:
    send "&cNo fighting here. %{_victim}% is safe."

What this event gives a script

In the blockWhat it is
{_region}The region there, empty in the wilderness
{_victim}The victim
Guide and examples
on guard build denied:
    send action bar "&cYou cannot build in %{_region}%" to player

on guard pvp denied:
    send "&cNo fighting here. %{_victim}% is safe."
EventWhenIn the block
on guard build denied:WorldGuard has stopped a player breaking or placing a block{_region} (the region there, empty in the wilderness), {_action} (break or place), {_location}
on guard pvp denied:WorldGuard has stopped one player hurting another; the player is the attacker{_region}, {_victim}
  • Both can be given a region to listen for, like the events above: on guard build denied "spawn":.
  • WorldGuard still sends its own message. To have only yours, clear the region's deny-message flag: set guard flag "deny-message" of region "spawn" to "".
  • These rely on events inside WorldGuard that are not in every version of it. If yours has none, HyperGuard says so in the console when it starts, and everything else works.