Allow your players to focus while playing on your server. This plugin introduces a "
FocusChat" mode that blocks player messages from reaching anyone that has the FocusChat mode enabled. Commands will still work fine and your staff can bypass the FocusChat from your players if they so desire.
Commands and permissions
/focuschat [player] => Toggles the players FocusChat mode. If used without an argument, the FocusChat mode of the person that executed the command will be toggled.
/fc [player] => Alias of /focuschat
/focuschatquery [player] => Queries the FocusChat mode of the player. If used without an argument, the FocusChat mode of the person that executed the command will be queried.
/fcq [player] => Alias of /focuschatquery
focuschat.*: description: Gives full acces to the FocusChat plugin default: op children: focuschat.toggle focuschat.force focuschat.query
focuschat.toggle: description: Allows to toggle anyones FocusChat default: op children: focuschat.toggle.self focuschat.toggle.others
focuschat.force: description: Allows bypassing the FocusChat default: op
focuschat.query: description: Allows to query anyones FocusChat state default: op children: focuschat.query.self focuschat.query.others
focuschat.toggle.self: description: Allows toggeling FocusChat mode for themselves default: op
focuschat.toggle.others: description: Allows toggeling FocusChat mode for others default: op
focuschat.query.self: description: Allows querying FocusChat mode for themselves default: op
focuschat.query.others: description: Allows querying FocusChat mode for others default: op
Default config
Code (YAML):
########################################################## # FocusChat # # -A plugin by Mmaarten- # # Contact Mmaarten on spigot or Mmaarten#1769 # # on discord if support is required # ##########################################################
# Valid Color codes: https://minecraft.tools/en/color-code.php (use the most left column) # Remember to put the actual COLOR code before any font modifiers. Font modifiers get reset when a color code is used. # §7§l = light gray AND bold # §l§7 = light gray
# ------- # General # -------
# Whether or not messages from players with the permission FocusChat.force get forced to everyone by default or if the # Player has to start their message with a "!" automatic_force: true
# Whether or not FocusChat is enabled for players as soon as they join enabled_on_join: false
# Broadcast when a player their FocusChat it turned on broadcast_on_enable: true
# Prefix used for user messages prefix: "§8[§7§lFocusChat§8] > "
# Prefix used when something went wrong/no permission etc error_prefix: "§8[§cFocusChat§8] > "
# Color code for messages that use "prefix" default_message_color: §7
# Color code for messages that use "error_prefix" error_message_color: §4
# Color code used to highlight "enabled" and "disabled" highlight_color: §3§l
# String representation to indicate whether or not FocusChat is activated enabled: "enabled" disabled: "disabled"
# --------------- # Player Messages # ---------------
# Error messages (use the "error_prefix") insufficient_permission: "Insufficient permission." too_many_arguments: "Too many arguments." incorrect_player_argument: "Player not found." # Fired if a player tries to chat while having FocusChat enabled chat_message_sent_while_focuschat_enabled: "You have focus chat enabled!"
# Regular messages (use the "prefix") # Sent to players when their FocusChat is turned on when they join notify_on_join: "Your FocusChat has been turned on by default."
# %name% will be replaced by the Display Name of the person whose FocusChat is now turned on broadcast_message: "%name% has enabled FocusChat"
# %activated% will be replaced by enabled or disabled (see above) representing the focusChat state successful_self_toggle: "Toggled your FocusChat. Now : %activated%."
# %name% will be replaced by the Display Name of the person who got his FocusChat toggled # %activated% will be replaced by enabled or disabled (see above) representing the focusChat state successful_other_toggle: "Toggled FocusChat for %name%. Now : %activated%."
# %name% will be replaced by the Display Name of the person who toggled the FocusChat for someone else # %activated% will be replaced by enabled or disabled (see above) representing the focusChat state successful_other_being_toggled: "Your FocusChat has been toggled by %name%. Now: %activated%." successful_self_query: "Your FocusChat is currently %activated%." successful_other_query: "%name%'s FocusChat is currently %activated%."
# ---------------- # Console Messages # ---------------- player_command_only: Only a player can do this!