Commented the custom event sequence for future reference

This commit is contained in:
Aust1n46 2020-03-07 16:06:58 -05:00
parent fb92d82f73
commit d81e1d0872

View File

@ -460,8 +460,11 @@ public class ChatListener implements Listener {
String message = consoleChat.replaceAll("(§([a-z0-9]))", ""); String message = consoleChat.replaceAll("(§([a-z0-9]))", "");
int hash = message.hashCode(); int hash = message.hashCode();
//Create VentureChatEvent
VentureChatEvent ventureChatEvent = new VentureChatEvent(mcp, eventChannel, recipients, format, chat, globalJSON, hash, bungee); VentureChatEvent ventureChatEvent = new VentureChatEvent(mcp, eventChannel, recipients, format, chat, globalJSON, hash, bungee);
//Fire event and wait for other plugin listeners to act on it
Bukkit.getServer().getPluginManager().callEvent(ventureChatEvent); Bukkit.getServer().getPluginManager().callEvent(ventureChatEvent);
//Call method to send the processed chat
handleVentureChatEvent(ventureChatEvent); handleVentureChatEvent(ventureChatEvent);
} }