Mirror von
https://github.com/St3venAU/ArmorStandTools.git
synchronisiert 2024-12-28 20:40:12 +01:00
Fixed sign creation bypassing protection
Dieser Commit ist enthalten in:
Ursprung
37ebbd9e37
Commit
b61949854d
@ -546,7 +546,7 @@ public class MainListener implements Listener {
|
|||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
private void setName(Player p, ArmorStand as) {
|
private void setName(Player p, ArmorStand as) {
|
||||||
Block b = Utils.findAnAirBlock(p.getLocation());
|
Block b = Utils.findAnAirBlock(p.getLocation());
|
||||||
if(b == null) {
|
if(b == null || !checkPermission(p, b)) {
|
||||||
p.sendMessage(ChatColor.RED + Config.noAirError);
|
p.sendMessage(ChatColor.RED + Config.noAirError);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren