Quantcast
Viewing latest article 9
Browse Latest Browse All 3776

Chat chain breaking when cancelling an event and sending a message

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.
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...
Chat chain breaking when cancelling an event and sending a message

Viewing latest article 9
Browse Latest Browse All 3776

Trending Articles