Fixes #1922 Banned people can still "talk" in plot

This commit is contained in:
Jesse Boyd 2019-11-12 20:52:14 +00:00
parent c23086259d
commit f518c47e09
No known key found for this signature in database
GPG key ID: 59F1DE6293AF6E1F

View file

@ -1024,6 +1024,9 @@ import java.util.regex.Pattern;
if (plot == null) {
return;
}
if (plot.isDenied(plotPlayer.getUUID())) {
return;
}
event.setCancelled(true);
String message = event.getMessage();
String format = Captions.PLOT_CHAT_FORMAT.getTranslated();