Message - A Simple Messaging Plugin For Velocity

message

Cross Server Messaging Platform for Velocity

Commands

Message:

/message <player> <message>
/msg <player> <message>

Arguments:

Base Command Player Message Permission
/message Any name of an online player Any Message osmc.message.send (Default)
/msg Any name of an online player Any Message osmc.message.send (Default)

Reply:

/reply <message>
/r <message>

Arguments:

Base Command Message Permission
/reply Any Message osmc.message.reply (Default)
/r Any Message osmc.message.reply (Default)

SocialSpy:

/socialspy <on|off|toggle>
/ss <on|off|toggle>

Arguments:

Base Command Action Permission
/socialspy Turn On, Off or Toggle osmc.message.socialspy
/ss Turn On, Off or Toggle osmc.message.socialspy

Configuration

File:

# Plugin Settings
[plugin]
    enabled=true

# Messages:
# Customise using MiniMessage
# Link: https://docs.adventure.kyori.net/minimessage.html#format
# Placeholders: <sender>, <receiver>, <message>
[messages]
    # Message
    message-sent="<white>[<gradient:red:blue>YOU</gradient> <strikethrough>→</strikethrough> <gradient:blue:red><receiver></gradient>]</white>: <white><pre><message></pre></white>"
    message-received="<white>[<gradient:red:blue><sender></gradient> <strikethrough>→</strikethrough> <gradient:blue:red>YOU</gradient>]</white>: <white><pre><message></pre></white>"
    # SocialSpy
    message-socialspy="<gradient:red:blue>SocialSpy: </gradient><white><sender> → <receiver>: <message>"
    socialspy-enabled="<yellow>SocialSpy enabled.</yellow>"
    socialspy-disabled="<yellow>SocialSpy disabled.</yellow>"
    socialspy-toggle="<yellow>SocialSpy toggled [<true-or-false>]</yellow>" # <true-or-false> returns the value of "socialspy-toggle-true" or "socialspy-toggle-false" depending on the context.
    socialspy-toggle-true="<green>✓</green>"
    socialspy-toggle-false="<red>✕</red>"
# Aliases:
# Customise using a TOML string arrray.
[aliases]
    message=["msg", "tell"]
    reply=["r"]
    socialspy=["ss"]

# Error messages:
# Customise using MiniMessage
# Link: https://docs.adventure.kyori.net/minimessage.html#format
# Placeholders: None
[error-messages]
    # General
    no-permission="<red>You do not have permission to execute this command.</red>"
    # Message
    message-player-not-found="<red>That player was not found.</red>"
    message-usage="<red>Usage: /message \\<player> \\<message></red>"
    # Reply
    reply-no-player-found="<red>Unable to reply.</red>"
    reply-usage="<red>Usage: /reply \\<message></red>"
    # SocialSpy
    socialspy-usage="<red>Usage: /socialspy <on|off|toggle></red>"

[developer-info]
    config-version=0.4

Default:










Don’t understand X? Take a look at some docs:

Credits:

Download:

Release 0.2.0

New Commands

  • /reply
  • /socialspy

New Features

  • Aliases
  • Config version for easy updates

Custom Error Messages

  • No Permission
  • Player not found
  • Message Usage
  • Reply Usage
  • Reply player not found

API

  • Made message event more API friendly

Known Bugs:

Issue #8 is a known bug, however, I am not quite sure how to reproduce it at the moment.

Release 0.2.1

Bug Fixes:

  • Config Migration
  • Config Reading
  • Issue #8

New Features:

  • BStats

Release 0.2.2

Bug fixes:

  • /message bug fixed

New Features:

  • SocialSpy Enhanced

Note: I am aware of <3 breaking messages- I am waiting for MiniMessage to push a fix.