mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-10-03 00:57:34 +02:00
fixed for latest changes
This commit is contained in:
parent
17e9105b9c
commit
68a0c67769
@ -113,7 +113,7 @@ public class WorldGuardPlugin extends JavaPlugin {
|
||||
public boolean teleportOnSuffocation;
|
||||
public boolean useRegions;
|
||||
public int regionWand = 287;
|
||||
|
||||
public String blockCreatureSpawn;
|
||||
/**
|
||||
* Construct the plugin.
|
||||
*
|
||||
@ -183,6 +183,7 @@ private void registerEvents() {
|
||||
|
||||
registerEvent(Event.Type.ENTITY_DAMAGED, entityListener, Priority.High);
|
||||
registerEvent(Event.Type.ENTITY_EXPLODE, entityListener, Priority.High);
|
||||
registerEvent(Event.Type.CREATURE_SPAWN, entityListener, Priority.High);
|
||||
|
||||
registerEvent(Event.Type.PLAYER_ITEM, playerListener, Priority.High);
|
||||
registerEvent(Event.Type.PLAYER_DROP_ITEM, playerListener, Priority.High);
|
||||
@ -301,6 +302,10 @@ public void loadConfiguration() {
|
||||
useRegions = config.getBoolean("regions.enable", true);
|
||||
regionWand = config.getInt("regions.wand", 287);
|
||||
|
||||
for (String creature : config.getStringList("mobs.block-creature-spawn", null)) {
|
||||
blockCreatureSpawn += creature.toLowerCase() + " ";
|
||||
}
|
||||
|
||||
GlobalFlags globalFlags = new GlobalFlags();
|
||||
globalFlags.canBuild = config.getBoolean("regions.default.build", true);
|
||||
globalFlags.canAccessChests = config.getBoolean("regions.default.chest-access", false);
|
||||
|
Loading…
Reference in New Issue
Block a user