Quantcast
Channel: BungeeCord Discussion
Viewing all articles
Browse latest Browse all 3776

Chat chain breaking when cancelling an event and sending a message

$
0
0
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 all articles
Browse latest Browse all 3776

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>