mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Fixes chat error / plot deny *
This commit is contained in:
parent
8b10b7109c
commit
45b6950111
@ -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)
|
||||
|
@ -1635,7 +1635,7 @@ public class Plot {
|
||||
public boolean removeDenied(UUID uuid) {
|
||||
if (uuid == DBFunc.everyone) {
|
||||
boolean result = false;
|
||||
for (UUID other : getDenied()) {
|
||||
for (UUID other : new HashSet<>(getDenied())) {
|
||||
result = result || rmvDenied(other);
|
||||
}
|
||||
return result;
|
||||
@ -1662,7 +1662,7 @@ public class Plot {
|
||||
public boolean removeTrusted(UUID uuid) {
|
||||
if (uuid == DBFunc.everyone) {
|
||||
boolean result = false;
|
||||
for (UUID other : getTrusted()) {
|
||||
for (UUID other : new HashSet<>(getTrusted())) {
|
||||
result = result || rmvTrusted(other);
|
||||
}
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user