Fixed portal protection region

This commit is contained in:
Sekwah 2019-12-30 15:11:25 +00:00
parent 9f4b70a0ef
commit fecdc32e0d
No known key found for this signature in database
GPG Key ID: A3DC2450FC15DB57
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,8 @@ public class PortalProtect implements Listener {
ConfigAccessor config = new ConfigAccessor(plugin, "config.yml");
this.PortalProtect = config.getConfig().getBoolean("PortalProtection");
this.PortalProtectionRadius = config.getConfig().getInt("PortalProtectionRadius", 5);
if (PortalProtect) {
plugin.getServer().getPluginManager().registerEvents(this, plugin);
}