OffHandActions
Add actions when player switches between his main and off hand (clicks F button)! Send message, run console command or make the player do it.
Actions that can be added in configuration:
- [ConsoleCommand] - Run any command from console, has variable %player%
- [PlayerCommand] - Make player who used the action run the command, has variable %player%
- [Message] - Send player any message, has variable %player%
Example:
'[Message] &6Hello &e%player%!'
Config:
Code:
# ---------------------------------------------
# OffHandActions by N3kas
# ---------------------------------------------
# Help:
# disable-offhand: [true/false] - Should the off hand be disabled or not?
# actions: List of actions:
# [ConsoleCommand] - Run any command from console, has variable %player%
# [PlayerCommand] - Make player who used the action run the command, has variable %player%
# [Message] - Send player any message, has variable %player%
# NOTE: THESE ACTIONS CAN BE ADDED UNLIMITED TIMES TO THE LIST (meaning: you can run multiple commands
# or send multiple chat messages at once)
# ---------------------------------------------
# Good luck /w the plugin :) - N3kas
# ---------------------------------------------
disable-offhand: true
actions:
- '[ConsoleCommand] tell %player% This server is using OffHandActions!'
- '[PlayerCommand] /me Hey! :)'
- '[Message] &7This server is using &eOffHandActions&7!'
You can add unlimited number of same actions in configuration (you can run multiple commands or send multiple chat messages at once)
Last edited:
