Notify the kicked person over the actor

This commit is contained in:
NotMyFault 2021-05-20 21:22:00 +02:00
parent a05dd19986
commit c8406681d7
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C

View File

@ -133,7 +133,7 @@ public class Kick extends SubCommand {
return;
}
Location spawn = this.worldUtil.getSpawn(location.getWorldName());
player.sendMessage(TranslatableCaption.of("kick.you_got_kicked"));
player2.sendMessage(TranslatableCaption.of("kick.you_got_kicked"));
if (plot.equals(spawn.getPlot())) {
Location newSpawn = this.worldUtil.getSpawn(this.plotAreaManager.getAllWorlds()[0]);
if (plot.equals(newSpawn.getPlot())) {