mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-23 10:39:05 +00:00
Commented the custom event sequence for future reference
This commit is contained in:
parent
fb92d82f73
commit
d81e1d0872
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user