Fixes chat error / plot deny *

This commit is contained in:
Jesse Boyd
2016-04-07 03:33:49 +10:00
parent 8b10b7109c
commit 45b6950111
2 changed files with 3 additions and 6 deletions

View File

@ -603,14 +603,11 @@ public class PlayerEvents extends PlotListener implements Listener {
}
}
}
String full = format.replaceAll("%plot_id%", id.x + ";" + id.y).replaceAll("%sender%", sender).replaceAll("%msg%", message);
String full = format.replace("%plot_id%", id.x + ";" + id.y).replace("%sender%", sender).replace("%msg%", message);
full = ChatColor.translateAlternateColorCodes('&', full);
// format = format.replaceAll("%plot_id%", id.x + ";" + id.y).replaceAll("%sender%", "%s").replaceAll("%msg%", "%s");
// format = ChatColor.translateAlternateColorCodes('&', format);
for (Player receiver : recipients) {
receiver.sendMessage(full);
}
// event.setFormat(format);
}
@EventHandler(priority = EventPriority.LOWEST)