Send Player along with replaceText
This commit is contained in:
parent
01be60ed23
commit
befece04d9
|
|
@ -44,7 +44,7 @@ public class PlayerListener implements Listener {
|
||||||
if (component != null) {
|
if (component != null) {
|
||||||
String message = PlainComponentSerializer.plain().serialize(component);
|
String message = PlainComponentSerializer.plain().serialize(component);
|
||||||
|
|
||||||
message = RegexManager.replaceText(message); // todo a better way for this
|
message = RegexManager.replaceText(event.getPlayer(), message); // todo a better way for this
|
||||||
|
|
||||||
if (message == null) {
|
if (message == null) {
|
||||||
Utils.sendBlockedNotification("Sign Language" ,event.getPlayer(), PlainComponentSerializer.plain().serialize(component), "");
|
Utils.sendBlockedNotification("Sign Language" ,event.getPlayer(), PlainComponentSerializer.plain().serialize(component), "");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user