Dieser Commit ist enthalten in:
Ursprung
5a991de55a
Commit
5a835acb80
@ -23,7 +23,6 @@ import de.steamwar.bausystem.BauSystem;
|
|||||||
import de.steamwar.bausystem.Permission;
|
import de.steamwar.bausystem.Permission;
|
||||||
import de.steamwar.bausystem.config.BauServer;
|
import de.steamwar.bausystem.config.BauServer;
|
||||||
import de.steamwar.bausystem.utils.BauMemberUpdateEvent;
|
import de.steamwar.bausystem.utils.BauMemberUpdateEvent;
|
||||||
import de.steamwar.core.CraftbukkitWrapper;
|
|
||||||
import de.steamwar.inventory.SWItem;
|
import de.steamwar.inventory.SWItem;
|
||||||
import de.steamwar.linkage.Linked;
|
import de.steamwar.linkage.Linked;
|
||||||
import de.steamwar.sql.BauweltMember;
|
import de.steamwar.sql.BauweltMember;
|
||||||
@ -98,7 +97,7 @@ public class SpectatorListener implements Listener {
|
|||||||
materials.add(Material.WATER);
|
materials.add(Material.WATER);
|
||||||
materials.remove(Material.BARRIER);
|
materials.remove(Material.BARRIER);
|
||||||
materials.remove(Material.STONE);
|
materials.remove(Material.STONE);
|
||||||
TechHider techHider = new TechHider((player, i, i1) -> {
|
TechHider techHider = new TechHider((TechHider.LocationEvaluator) (player, i, i1) -> {
|
||||||
return Permission.BUILD.hasPermission(player) || Permission.isTempOnlySpectator(player) || NO_TECHHIDER.contains(player);
|
return Permission.BUILD.hasPermission(player) || Permission.isTempOnlySpectator(player) || NO_TECHHIDER.contains(player);
|
||||||
}, Material.END_STONE, materials, new HashSet<>());
|
}, Material.END_STONE, materials, new HashSet<>());
|
||||||
techHider.enable();
|
techHider.enable();
|
||||||
|
@ -148,7 +148,7 @@ public class XrayCommand extends SWCommand implements Listener, ScoreboardElemen
|
|||||||
}
|
}
|
||||||
|
|
||||||
private TechHider createXray(Region rg, Set<Material> obfuscate) {
|
private TechHider createXray(Region rg, Set<Material> obfuscate) {
|
||||||
TechHider current = new TechHider((p, cX, cY) -> {
|
TechHider current = new TechHider((TechHider.LocationEvaluator) (p, cX, cY) -> {
|
||||||
if (rg.buildChunkOutside(cX, cY)) return true;
|
if (rg.buildChunkOutside(cX, cY)) return true;
|
||||||
return !hidden.get(rg).contains(p);
|
return !hidden.get(rg).contains(p);
|
||||||
}, Material.STRUCTURE_VOID, obfuscate, new HashSet<>());
|
}, Material.STRUCTURE_VOID, obfuscate, new HashSet<>());
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren