π§Restrictions
Trade restrictions are essential in certain conditions, ensuring necessary control and compliance.
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
# 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
restrictionMessages:
PLAYER_MOVED: '<red>You can''t move while trading'
PLAYER_DAMAGED: '<red>You can''t get damaged while trading'
PLAYER_COMBAT: '<red>You can''t be in combat while trading'
WORLD_CHANGE: '<red>You can''t change world while trading'
Last updated
Was this helpful?