Skip to content

A simple Minecraft server extension for customizing the chat with channels.

License

Notifications You must be signed in to change notification settings

GufliMC/BrickChat

Repository files navigation

BrickChat

A simple Minecraft plugin/extension for creating chat channels

Install

Get the release and place it in your server.

Config

You can change the settings in the config.json.

You can remove and create chat channels.

{
  "channels": {
    "default": {
      "format": "{playername} > {chatmessage}"
    },
    "admin": {
      "format": "[ADMINCHAT] {playername} > {chatmessage}",
      "activator": "!",
      "protect": {
        "type": "READ",
        "permission": "brickchat.channel.admin"
      }
    }
  }
}

The activator is the symbol you start your message with to talk in this channel.

Available protect types are:

  • TALK: You can read, but need permission to talk
  • READ_AND_TALK: You need permission to read and talk

API

Gradle

repositories {
    maven { url "https://repo.jorisg.com/snapshots" }
}

dependencies {
    // minestom
    compileOnly 'com.guflimc.brick.chat:minestom-api:+'
    
    // spigot
    compileOnly 'com.guflimc.brick.chat:spigot-api:+'
}

Javadocs

Check the javadocs for all platforms here.

Examples

SpigotChatAPI.get().registerChatChannel(new SimpleChatChannel("trade", "$", "[TRADE] {playername} > {chatmessage}"));

SpigotChatChannel channel = ChatAPI.get().channelByName("trade");
SpigotChatAPI.get().send(channel, "hello fellow traders!");
@EventHandler
public void onChat(PlayerChannelChatEvent e) {
    System.out.println(e.chatChannel().name() + ": " + e.player() + " > " + e.message());
}

About

A simple Minecraft server extension for customizing the chat with channels.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages