Coder Social home page Coder Social logo

gchat's Introduction

gChat Build Status

A simple global chat plugin for BungeeCord.

Features

  • Global chat channel throughout your network
  • Placeholders to customize chat formatting
  • Multiple formats selected using weight
  • API for adding additional placeholders, or listening to chat events

Placeholders

Standard Placeholders

These placeholders are provided by gChat.

  • {username} or {name} - the players username
  • {server_name} - the name of the players current server
  • {uuid} - the players unique id
  • {display_name} - the players display name
  • {message} - the chat message being sent by the player.

Plugin Hooks

gChat also provides hooks for the following plugins.

  • LuckPerms - gChat will hook with LuckPerms if it's installed on the proxy, and allows you to use any of the placeholders listed here.

Configuration

# gChat Configuration

# If a player doesn't have permission for any of the formats, should the chat message be passed through to the
# backend server or just ignored.
passthrough: true

# if permissions are required to send/receive chat messages
require-permission:
  # if true, players will need to have the "gchat.send" permission to send messages
  send: false

  # the message to send if a player doesn't have permission to chat
  # will only be sent if the 'passthrough' option below is false
  send-fail: "&cYou do not have permission to use the chat!"

  # if true, players will need to have the "gchat.receive" permission to receive messages
  receive: false

  # if a player doesn't have permission to send a message, should it be passed through to the backend server?
  passthrough: true

# Defines the formats to be used.
formats:

  # a default format for everyone on the server
  everyone:

    # the priority of the format. higher number = higher priority.
    # if a user has permission for multiple formats, the one with the highest priority will be used.
    priority: 100

    # if this format requires a permission.
    # permissions are in the format: "gchat.format.<format name>"
    # for example: "gchat.format.everyone"
    check-permission: true

    # the actual format for the chat message
    format: "{luckperms_prefix}{name}{luckperms_suffix}{message}"

    format-extra:

      # the format for the message tooltip
      hover: ""

      # what should happen when the message is clicked?
      click:

        # type: can be either "none", "suggest_command", "run_command" or "open_url"
        type: "none"

        # the value to suggest or run.
        value: ""

  # another format without all the comments!
  staff:
    priority: 150
    check-permission: true
    format: "* {luckperms_prefix}{name}{luckperms_suffix}&c: &b&l{message}"
    format-extra:
      hover: |-
        &e{name} is a staff member!

        &6Feel free to message them any time, by
        &6clicking this message!
      click:
        type: suggest_command
        value: "/msg {name} "

gchat's People

Contributors

frebib avatar lucko avatar mdcfe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gchat's Issues

Error on enable on latest waterfall version

Im getting an error when using gChat on the latest Waterfall version.

[21:22:38] [main/WARN]: Error enabling plugin gChat
java.lang.NoClassDefFoundError: net/md_5/bungee/log/ConciseFormatter
	at java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:?]
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:3215) ~[?:?]
	at java.lang.Class.getConstructor0(Class.java:3420) ~[?:?]
	at java.lang.Class.getDeclaredConstructor(Class.java:2631) ~[?:?]
	at net.md_5.bungee.api.plugin.PluginManager.enablePlugin(PluginManager.java:382) ~[proxy.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:8afc4e2:366]
	at net.md_5.bungee.api.plugin.PluginManager.loadPlugins(PluginManager.java:285) ~[proxy.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:8afc4e2:366]
	at net.md_5.bungee.BungeeCord.start(BungeeCord.java:277) ~[proxy.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:8afc4e2:366]
	at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:62) ~[proxy.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:8afc4e2:366]
	at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15) ~[proxy.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:8afc4e2:366]
Caused by: java.lang.ClassNotFoundException: net.md_5.bungee.log.ConciseFormatter
	at net.md_5.bungee.api.plugin.PluginClassloader.loadClass0(PluginClassloader.java:63) ~[proxy.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:8afc4e2:366]
	at net.md_5.bungee.api.plugin.PluginClassloader.loadClass(PluginClassloader.java:37) ~[proxy.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:8afc4e2:366]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
	... 9 more```

GChat or LuckPermissions no compatible con MaddyCaptcha

Con el plugin permissionesx y essentialsxchat funcionaba, supongo, que es porque con esos plugins permitia que el mensaje se vea en la consola entonces maddycaptcha lo detectaba en cambio como gchat no muestra el mensaje del jugador en la consola maddycaptcha no lo detecta

Bungeecord faction prefix chat

Hey i have a little problem.
I use LuckPerm for bungeecord and gChat.
just i don't have my faction prefix before my username.

sorry for my english

[Feature Request] clickable links

I'm using the Velocity port of this mod, but I think this might be a core feature request. When I paste a link in the chat, I am unable to click it (using client 1.12.2). I thought it would be nice if it detected hyperlinks in the chat and automatically made them clickable.

Log date formatter changed with the latest build

Thanks for updating/fixing the logging in the latest build.
The format changed for me, though

2019-11-25T20:45Z [INFO] [survival] <frebib> (quact)
2019-12-08T15:17Z [INFO] [survival] <frebib> zzzzzzz
22:27:04 [INFO] [creative] <frebib> test
22:27:04 [INFO] [creative] <frebib> hi
22:27:05 [INFO] [creative] <frebib> sup

Our Bungeecord instances uses a different date format specified at runtime:
spritsail/bungeecord@b79e9f8
The ConciseFormatter that was used before reads that variable, and defaults to HH:mm:ss:
https://github.com/SpigotMC/BungeeCord/blob/master/log/src/main/java/net/md_5/bungee/log/ConciseFormatter.java#L17

Could this override be re-added, please

Feature Request; Multichat Rooms.

I know that this plugin hasn't been touched for a while, which probably only speaks to how good it is.

I am using it for chat with small network of multiple server running different versions of Sponge, Bukkit and SpongeForge. I use LuckPerms with all of them and on the Bungee as well. What I would like to do is be able to have multiple chat rooms for the various roles. Staff has Staff Chat, Admins have Admin Chat, VIP's have VIP chat and of course a global chat.

just wondering if you could consider adding this to the plugin? Or suggest something that would do what I want?

Global Chat not working?

I have a Spigot server connecting to a Sponge server, and cannot get two things to work:
1: the spigot server wont show tags, while the sponge one does.
2: i cannot seem to access any form of global chat, only single server side.

I am using LuckPerms and gChat together, with the only other plugins being used are:
Nucleus on the Sponge server
and Essentials on the Spigot server (i took out essentialsxchat to see if that would fix the issue, which it did not)

gChat freezes Waterfall

spoke to BrainStone today on LP off-topic discord, UTC: 13:51.

using:
Waterfall-327 from paper
gChat from Jenkins
LuckPerms-Bungee-5.0.130 from LP website

expected behaviour:
gChat enabling and waterfall enabling its listener and so on afterwards.

what actually happened:
gChat tried to enable itself and froze everything.

logs:
without gChat: hastebin log
with gChat hastebin log
hastebin of gchat.log

Thank you for looking into it.

I know LP has priority and thats totally fine and awesome, keep up the good work.
Found this because I was in need of a super clean and lightweight chat plugin, been using VaultChatFormatter on my single server setups and wanted to "upgrade" to gChat.

all the best from Germany

How disable Global Chat ?

Hi everyone , I want disable the global chat but I don't know how I do that .

Can you help me ?

Thanks

Not showing any prefixes or suffixes

Hi, I set up a spigot server and a bungeecord proxy. Running LuckPerms and gChat, but chat does not show any prefixes and/or suffixes. I left gChat config default, lp user poempelpinguin info shows up correct group and prefix... :(

how to make chat global?

how to make chat global?
I cant see anything which can make the servers chat global
I went to the bedwars server and send "hi" and its not getting received in the lobby server, please take a look out.

CPU usage

the last version of gChat freeze the execution of bungeecord and the cpu is on fire.
i tried to put the October build and it works fine.
maybe i forgot something. i'm using waterfall, now i try to put the original version of bungeecord

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.