blob: f99c43d216f5e05b07bd8e563d740124fb56e6ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
package net.ess3.settings.protect;
import java.util.HashSet;
import java.util.Set;
import lombok.Data;
import lombok.EqualsAndHashCode;
import net.ess3.storage.Comment;
import net.ess3.storage.ListType;
import net.ess3.storage.StorageObject;
import org.bukkit.Material;
@Data
@EqualsAndHashCode(callSuper = false)
public class Prevent implements StorageObject
{
@Comment("Which blocks should a piston not be able to push?")
@ListType(Material.class)
private Set<Material> pistonPush = new HashSet<Material>();
private boolean lavaFlow = false;
private boolean waterFlow = false;
// private boolean waterbucketFlow = false; TODO: Test if this still works
private boolean firespread = true;
private boolean lavaFirespread = true;
private boolean lightningFirespread = true;
private boolean portalCreation = false;
private boolean tntExplosion = false;
private boolean fireballExplosion = false;
private boolean fireballFire = false;
private boolean creeperExplosion = false;
private boolean creeperBlockdamage = false;
private boolean enderdragonBlockdamage = false;
private boolean endermanPickup = false;
private boolean villagerDeath = false;
@Comment(
{
"Monsters won't follow players",
"permission essentials.protect.entitytarget.bypass disables this"
})
private boolean entitytarget = false;
public Prevent()
{
pistonPush.add(Material.GLASS);
}
}
|