mirror of
https://github.com/essentials/Essentials.git
synced 2025-01-17 13:28:30 +01:00
The event.getPlayer() is needed for the hook.
This commit is contained in:
parent
17f3bc4494
commit
625164dac2
@ -120,7 +120,7 @@ public class EssentialsChatPlayerListener extends PlayerListener
|
||||
|
||||
for (IEssentialsChatListener listener : listeners.values())
|
||||
{
|
||||
message = listener.modifyMessage(message);
|
||||
message = listener.modifyMessage(event, message);
|
||||
|
||||
}
|
||||
//if (factions != null)
|
||||
|
@ -7,5 +7,5 @@ public interface IEssentialsChatListener
|
||||
{
|
||||
boolean shouldHandleThisChat(PlayerChatEvent event);
|
||||
|
||||
String modifyMessage(String message);
|
||||
String modifyMessage(PlayerChatEvent event, String message);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user