SimpleGlobalChat

Plugin for Minecraft Spigot/Paper that enables customizable global/local/private/admin chats, ignore/unignore and spy functions

432

Quick challenge

How far can you run before the mobs catch you?

SimpleGlobalChat

SimpleGlobalChat

GitHub | Future Links will be placed here

This plugin is NOT associated with SimpleVoiceChat

Plugin for Minecraft Spigot/Paper/Purpur/Folia that enables customizable global/local/private/admin chats, ignore/unignore and spy functions

All images in Gallery were taken from the same server

Main used language in plugin is ru, but you can change it to eng in configuration file

To change content of showed messages check out lang directory and ru or eng yml files

I wrote this plugin according to my needs and added the most useful features in my opinion. If you think that plugin needs some features feel free to suggest!

Features

Help command

Use it to see all available commands

Command: /chathelp

Global chat

Messages that start with "!" before message will be sent to all online players, for instance: "!Hello World"

Local chat

Other messages will be sent to players in radius of n blocks (basic quantity is 50) from sender

Private messages

Command: /msg <player nickname> <msg>

Aliases: [m, tell, w, т, м, message, ц, write]

Reply

Reply to last player with whom private messages were sent

Command: /r <msg>

Aliases: [reply, р, к, куздн]

Ignore/Unignore

Players can ignore private messages from specific player

Command:/ignore <player nickname>

Aliases: [ign, шптщку, игнор]

Command: /unignore <player nickname>

Aliases: [unign, гтшптщку, неигнор]

Spy mode

Players with permissions can see other players private messages

Command: /spy

Admin chat

It is switchable and only players with simpleglobalchatplugin.adminchat permission can see messages in this mode if enabled

Command:/adm-chat

Appeal

Reqular players can send messages that only admins (players with simpleglobalchatplugin.adminchat permission can see)

Command:/appeal <msg>

Aliases: [фззуфд, обращение]

Custom Join/Quit/Death messages

Configurable (Read Configuration section bellow)

Hex colors support

This plugin supports not only minecraft color code §0-f (&0-f too)

But hex colors too! (For example: &#7cdaf7)

Configuration

Turn off if you will not use placeholderapi ``` use-placeholderapi: true ```

You can change it to eng ``` language: "ru" ```

You can turn off or slightly change this settings ``` events: custom-join: toggle: true message: "§2[+] §f{player} присоединился к серверу" custom-quit: toggle: true message: "§c[-] §f{player} покинул сервер" custom-death: toggle: true message: "§8{death_message}" ```

Config of chats, you can turn them on/off, and change what will be shown in the messages in different chats ``` chat: global: toggle: true prefix: "[G]" name-color: "§f" message-color: "§f" placeholder-prefix: "%luckperms_prefix%" #Можно оставить пустым/You can leave it clear placeholder-suffix: "%luckperms_suffix%" world-prefix: enabled: true format: "§8[{world}] " # world — будет заменён на имя мира msgformat: "{world-color}{prefix} §r{placeholder-prefix}{name-color}{player} §7>> {message-color}{message}"

local: toggle: true radius: 50 prefix: "[L]" name-color: "§f" message-color: "§7" placeholder-prefix: "%luckperms_prefix%" world-prefix: enabled: true format: "§8[{world}] " msgformat: "§7{prefix} §r{placeholder-prefix}{name-color}{player} §7>> {message-color}{message}"

admin: toggle: true prefix: "[A-Chat]" name-color: "§f" message-color: "§f" placeholder-prefix: "%luckperms_prefix%" world-prefix: enabled: false format: "§8[{world}] " msgformat: "§d{prefix} §r{placeholder-prefix}{name-color}{player} §7>> {message-color}{message}"

appeal: toggle: true prefix: "[&#f75eabAPPEAL§8]" name-color: "§f" message-color: "§f" placeholder-prefix: "%luckperms_prefix%" world-prefix: enabled: false format: "§8[{world}] " msgformat: "§8{prefix} §r{placeholder-prefix}{name-color}{player} §7>> {message-color}{message}"

spy: toggle: true prefix: "[SPY] [✉]" name-color: "§b" message-color: "§7" receiver-prefix: "" receiver-color: "§e" placeholder-prefix: "%luckperms_prefix%" world-prefix: enabled: true format: "§8[{world}] " msgformat: "§1{prefix} §r{placeholder-prefix}{name-color}{player} §b→ §r{receiver-prefix}{receiver-color}{receiver} §b>> {message-color}{message}"

private: toggle: true prefix: "[✉]" name-color: "&#7cdaf7" receiver-prefix: "%luckperms_prefix%" receiver-color: "&#f2e77e" message-color: "§f" placeholder-prefix: "%luckperms_prefix%" world-prefix: enabled: false format: "§8[{world}] " msgformat: "§3{prefix} §r{placeholder-prefix}{name-color}{sender} §b→ §r{receiver-prefix}{receiver-color}{receiver} §b>> {message-color}{message}" ```

Lang directory As example eng.yml Messages that will be shown when using commands ``` Chat: General: NotPlayer: "§cOnly players can use this command." NoRights: "§cYou do not have permission to use this command." PlayerOffline: "§cThe player is offline or you entered an invalid nickname." EmptyCommand: "&cPlease provide arguments."

Private: Self: "§cYou can't send private messages to yourself." NoReply: "§cThere is no player to reply to." Ignoring: "The player is ignoring you. Message not sent." SpyMode: Enabled: "Spy mode enabled." Disabled: "Spy mode disabled."

Admchat: Toggle: Enabled: "§6Admin chat mode enabled." Disabled: "§6Admin chat mode disabled."

Appeal: NotPlayer: "§cOnly players can use this command." Sent: "Your appeal has been sent to the administrators."

Ignore: Self: "§cYou can't ignore yourself." Success: "§eYou are now ignoring %player%." Unignored: "&6You are no longer ignoring %player%."

Main: Help: Title: "Available commands (§e%current%§7/§e%total%§7):" InvalidPage: "&cInvalid page: &f%page%" PreviousPage: "◀ Prev |" NextPage: "Next ▶" PageIndicator: "Page %current% of %total%" Reloaded: "&aConfiguration reloaded." UnknownCommand: "&cUnknown subcommand. Use &e/sgc help&c." ```

Messages that will be shown when chathelp command is used ``` commands: msg: usage: "/msg <player> <message>" description: "Send a private message" r: usage: "/r <message>" description: "Reply to the last private message" appeal: usage: "/appeal <message>" description: "Send a message to the admin chat" ignore: usage: "/ignore <player>" description: "Ignore a player" unignore: usage: "/unignore <player>" description: "Stop ignoring a player" spy: usage: "/spy" description: "Toggle spy mode" adm-chat: usage: "/adm-chat" description: "Toggle admin chat mode" reload: usage: "/sgc reload" description: "Reload plugin config" ```

Bonds with other plugins

You can use channels "global", "admin", "appeal" in DiscordSRV configuration to send messages to different discord channels!

If player have LuckPerms prefix and PlaceholderAPI is installed on server, it can be showed in chat

ADS