🚧Restrictions

Trade restrictions are essential in certain conditions, ensuring necessary control and compliance.

WorldGuard

There is a flag registered into WorldGuard system called: restrict-trades

Set it to DENY to block trades in the selected region

Available Restrictions:

  • PLAYER_MOVED: This is to prevent trades from happening when a player is moving

  • PLAYER_DAMAGED: Close the trade window if a player gets damaged

  • PLAYER_COMBAT: This rule is enforced during PvP combat

  • WORLD_CHANGE: Close the GUI when the player changes the world

  • Please suggest new restrictions on my Discord if you need more

Cooldown Config

config.yml
# Action blacklist, the trade will be closed if one of these actions is detected
# Cooldown time is measured in milliseconds
# Remove an action to disable the restriction
actionCooldowns:
  PLAYER_MOVED: 400
  PLAYER_DAMAGED: 1000
  PLAYER_COMBAT: 5000
  WORLD_CHANGE: 1000

Cooldown messages

Last updated

Was this helpful?