Skip to content

Actions

Ali Arslan edited this page Mar 24, 2026 · 5 revisions

uxmFarmer Actions Configuration Guide

uxmFarmer Actions are highly configurable commands executed upon GUI clicks or entity interactions, providing extreme flexibility in defining logic.
Actions are used in the format: [action_name] arguments.
Some GUI items are hard-coded and cannot have actions, look out for them and do not try to add any actions as those actions will not work.

Action Name Description Example
player Executes the given command as the player. [player] farmer sellall
console Executes the given command as the console (server). [console] give %player_name% dirt 64
player_message Sends the given message string directly to the player using MiniMessage formatting. [player_message] <green><bold>Farmer Menu Opened!
console_message Sends the given message string to the server console. [console_message] Player %player_name% opened farmer GUI.
menu Shows the given menu/GUI ID to the player. [menu] main
close Closes the player's currently open GUI. [close]
teleport Teleports farmer to player's location, farmer in this action is obtained using player's location. [teleport]
sell_all Sells everything currently stored in the Farmer's storage. [sell_all]
modify_appearance Changes the Farmer's entity type (appearance) to the specified type. [modify_appearance] ALLAY
modify_profession Changes the Farmer's Villager profession. Only applies if the entity type is set to Villager. [modify_profession] LIBRARIAN
glow_color Changes the glowing color of the farmer NPC. [glow_color] GREEN
glow_status Toggles the glowing effect (on/off) for the farmer NPC. [glow_status]
buy Executes the farmer purchase logic, typically opening the purchase menu. [buy]
check_permission Checks if the player has a specific permission. If the player lacks the permission, the provided MiniMessage will be sent and no further actions in the sequence will be executed. [check_permission] uxmfarmer.vip <red>You need VIP rank!
cooldown Applies a specific cooldown to the player, preventing execution of certain actions until the cooldown expires. [cooldown] change-entity-cooldown
sound Plays a specified Bukkit Sound to the player upon action execution. [sound] ENTITY_ALLAY_AMBIENT_WITHOUT_ITEM
wait Pauses the execution of subsequent actions in the sequence for a specified duration (in ticks, 20 ticks = 1 second). [wait] 10
kick_member Removes a specified member from the current Farmer's member list. [kick_member] JohnDoe
next_page Navigates to the next page in the current paged GUI view. [next_page]
previous_page Navigates to the previous page in the current paged GUI view. [previous_page]
change_status Toggles Farmer's default collection status on or off. [change_status]

Menu Names

GUI Name Represented GUI
confirm_transfer ConfirmTransferGUI
logs FarmerLogsGUI
manage FarmerManageGUI
member_list FarmerMemberListGUI
settings FarmerSettingsGUI
glowing_settings GlowingSettingsGUI
input_sign InputSignGUI
member_manage MemberManageGUI
permission_list PermissionListGUI
product ProductGUI
shop ShopGUI
upgrade_all UpgradeAllGUI
upgrade UpgradeGUI
appearance_settings FarmerAppearanceGUI
entity_menu FarmerEntityGUI
profession_menu FarmerProfessionGUI
storage_status FarmerStorageStatusGUI
auto_kill_settings AutoKillSettingsGUI
auto_sell_settings AutoSellSettingsGUI
conversions ProductConversionsGUI

Clone this wiki locally