mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 04:23:02 +00:00
The event.getPlayer() is needed for the hook.
This commit is contained in:
parent
dc99efb0a7
commit
e805d1047f
2 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ public class EssentialsChatPlayerListener extends PlayerListener
|
||||||
|
|
||||||
for (IEssentialsChatListener listener : listeners.values())
|
for (IEssentialsChatListener listener : listeners.values())
|
||||||
{
|
{
|
||||||
message = listener.modifyMessage(message);
|
message = listener.modifyMessage(event, message);
|
||||||
|
|
||||||
}
|
}
|
||||||
//if (factions != null)
|
//if (factions != null)
|
||||||
|
|
|
@ -7,5 +7,5 @@ public interface IEssentialsChatListener
|
||||||
{
|
{
|
||||||
boolean shouldHandleThisChat(PlayerChatEvent event);
|
boolean shouldHandleThisChat(PlayerChatEvent event);
|
||||||
|
|
||||||
String modifyMessage(String message);
|
String modifyMessage(PlayerChatEvent event, String message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue