So i was developing a global staff chat plugin for bungeecord and when listening for the onChat event and cancelling it if they had the staffchat enabled, then sending a global message to the users with perms upon disableing the staff chat it would kick them out.
Chat chain breaking when cancelling an event and sending a message
Code (Java):
package dev.drifty.ministaff.events;
import dev.drifty.ministaff.MiniStaff;
import dev.drifty.ministaff.utils.ChatUtils;
import net.md_5.bungee.api.ProxyServer;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import...
import dev.drifty.ministaff.MiniStaff;
import dev.drifty.ministaff.utils.ChatUtils;
import net.md_5.bungee.api.ProxyServer;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import...