Sueta

ChatRadius

4.3.3

add Radius-based chat and global shouting to your current chat plugin.

·Plugin

This plugin allows your Minecraft server to use the radius-based chat regardless of what sort of chat plugin you're using.

Ofc, if you're using a chat system like HeroChat, which has its own radius based chat, you won't need this plugin.

Demo:
... coming...

Commands:

  • /chatradius help : displayer the help menu
  • /chatradius reload : reload the config.yml
  • /chatradius set <new_radius> : sets the new default radius.
  • /shout <message> : if you have a permission node (chatradius.shout), you can use this command to reach all players on the server.
  • /whipser <message> : if you have a permission node (chatradius.whisper), you can use this command to whisper to nearby players.
  • /chatradius spy : toggles spy mode.

Permissions:

  • chatradius.radius.xx : xx is the radius of your local chat. Your message will reach everyone within the radius 'xx'. For example, if you have a permission node "chatradius.radius.500", your chat will reach everyone within the radius 500 blocks. If a player has multiple radius permission nodes, the largest radius will be used.
  • chatradius.shoutradius.xx : xx is the radius of your shout. Your "shout" message will reach everyone within the radius 'xx'. For example, if you have a permission node "chatradius.shoutradius.500", your shout will reach everyone within the radius 500 blocks. If a player has multiple radius permission nodes, the largest radius will be used.
  • chatradius.whisperradius.xx : xx is the radius of your whisper. Your "whisper" message will reach everyone within the radius 'xx'. For example, if you have a permission node "chatradius.whisperradius.500", your shout will reach everyone within the radius 500 blocks. If a player has multiple radius permission nodes, the largest radius will be used.
  • chatradius.reload : allows you to use /chatradius reload command.
  • chatradius.shout.cooldown.xx : xx is the cooldown interval in seconds.
  • chatradius.whisper : allows you to use /whisper <msg> command.
  • chatradius.whisper.cooldown.xx : xx is the cooldown interval in seconds.
  • chatradius.bypass : allows you to bypass the global shout cooldown
  • chatradius.spy : allows you to get the message regardless of the radius.

Instrallation:
You just put ChatRadius.jar file into your server's plugins folder.

Configuration:

config.yml
# +------------------------------------------------------------+ #
# ChatRadius Configuration
# +------------------------------------------------------------+ #

# NOTE: Do NOT put tabs anywhere in the config!

Messages:
  ErrorMsg : "&c[ChatRadius] : Some error occured."
  InvalidValue : "&c[ChatRadius] : Invalid value."
  NewRadiusSet : "&a[ChatRadius] : The new default chat radius is set to &e%radius%&a."
  NewShoutRadiusSet : "&a[ShoutRadius] : The new default shout radius is set to &e%radius%&a."
  NoOneNearby: "&c[ChatRadius] : No one is nearby to hear you."
  ToggleSpyOn: "&a[ChatRadius] : You turned &eon &ayour spy mode."
  ToggleSpyOff: "&a[ChatRadius] : You turned &eoff &ayour spy mode."

HelpMessages:
  banner:
    msg: "=== &e[&aChatRadius Commands List (%version%)&e] &r==="
  help:
    msg: "&a/chatradius help : displays this help menu."
  reload:
    msg: "&a/chatradius reload : reloads config file."
    permission: "ChatRadius.reload"
  debug:
    msg: "&a/chatradius debug <true|false> : turn on / off the debug mode."
    permission: "chatradius.debug"
  set:
    msg: "&a/chatradius set <blocks> : set the local chat radius."
    permission: "chatradius.set"
  shoutset:
    msg: "&a/chatradius shoutset <blocks> : set the local chat radius."
    permission: "chatradius.set"

# if the process of chat event is affected by other plugin, you can adjust the following option
# to set this plugin's event priority to the appropriate value.
EventPriorityMap:
  AsyncPlayerChatEvent: HIGHEST

# delay until the "NoOneNearby" message is displayed
# in ticks.  (20 ticks = 1sec)
NoOneNearbyDelay: 10

DefaultRadius: 300  # in blocks
DefaultShoutRadius: -1  # -1 means no limit (in blocks)
DefaultWhisperRadius: 3  # -1 means no limit (in blocks)

ShoutPrefix: "&c[S]&r"
ShoutCooldown: 300 # in seconds
ShoutCooldownMsg : "&b[ChatRadius] you need to wait for &e%remaining% &bseconds until next shout."

WhisperPrefix: "&c[W]&r"
WhisperCooldown: 60 # in seconds
WhisperCooldownMsg : "&b[ChatRadius] you need to wait for &e%remaining% &bseconds until next whisper."

SpyFormat: "&c[Spy]&r<%sender%>%message%" #"&c[Spy]&r<%sender_name%>%message%"

Donation:
It would be greatly appreciated for your donation to continue providing support for this plugin.

Similar projects

Plugin →