*Add console sender to nukkit chat

This commit is contained in:
Jesse Boyd 2018-06-09 15:49:54 +10:00
parent ce3e3be59e
commit 9897890e6a
No known key found for this signature in database
GPG key ID: 59F1DE6293AF6E1F

View file

@ -1,6 +1,7 @@
package com.plotsquared.nukkit.listeners;
import cn.nukkit.Player;
import cn.nukkit.Server;
import cn.nukkit.block.Block;
import cn.nukkit.command.CommandSender;
import cn.nukkit.entity.Entity;
@ -588,6 +589,7 @@ public class PlayerEvents extends PlotListener implements Listener {
}
String newFormat = C.color(format.replace("%plot_id%", id.x + ";" + id.y).replace("%sender%", "{%0}").replace("%msg%", "{%1}"));
event.setFormat(newFormat);
recipients.add(Server.getInstance().getConsoleSender());
}
@EventHandler(priority = EventPriority.LOWEST)