Пример #1
0
  public Map<String, Boolean> getEpSettings() {
    Map<String, Boolean> epSettings = new HashMap<String, Boolean>();

    epSettings.put("protect.protect.signs", config.getBoolean("protect.protect.signs", true));
    epSettings.put("protect.protect.rails", config.getBoolean("protect.protect.rails", true));
    epSettings.put(
        "protect.protect.block-below", config.getBoolean("protect.protect.block-below", true));
    epSettings.put(
        "protect.protect.prevent-block-on-rails",
        config.getBoolean("protect.protect.prevent-block-on-rails", false));
    epSettings.put("protect.memstore", config.getBoolean("protect.memstore", false));
    return epSettings;
  }
Пример #2
0
 public boolean isCommandRestricted(String label) {
   for (String c : config.getStringList("restricted-commands", new ArrayList<String>(0))) {
     if (!c.equalsIgnoreCase(label)) continue;
     return true;
   }
   return config.getBoolean("restrict-" + label.toLowerCase(), false);
 }
Пример #3
0
 public boolean isCommandOverridden(String name) {
   List<String> defaultList = new ArrayList<String>(1);
   defaultList.add("god");
   for (String c : config.getStringList("overridden-commands", defaultList)) {
     if (!c.equalsIgnoreCase(name)) continue;
     return true;
   }
   return config.getBoolean("override-" + name.toLowerCase(), false);
 }
Пример #4
0
	private boolean _isNPC()
	{
		return config.getBoolean("npc", false);
	}
Пример #5
0
	private boolean _getAfk()
	{
		return config.getBoolean("afk", false);
	}
Пример #6
0
	public boolean _getMuted()
	{
		return config.getBoolean("muted", false);
	}
Пример #7
0
	private boolean _getTeleportEnabled()
	{
		return config.getBoolean("teleportenabled", true);
	}
Пример #8
0
 public boolean isTradeInStacks(int id) {
   return config.getBoolean("trade-in-stacks-" + id, false);
 }
Пример #9
0
 public boolean getPerWarpPermission() {
   return config.getBoolean("per-warp-permission", false);
 }
Пример #10
0
 public boolean getGenerateExitPortals() {
   return config.getBoolean("nether.generate-exit-portals", true);
 }
Пример #11
0
 public boolean areSignsDisabled() {
   return config.getBoolean("signs-disabled", false);
 }
Пример #12
0
 public Map<String, Boolean> getEpPlayerSettings() {
   final Map<String, Boolean> epPlayerSettings = new HashMap<String, Boolean>();
   epPlayerSettings.put("protect.disable.fall", config.getBoolean("protect.disable.fall", false));
   epPlayerSettings.put("protect.disable.pvp", config.getBoolean("protect.disable.pvp", false));
   epPlayerSettings.put(
       "protect.disable.drown", config.getBoolean("protect.disable.drown", false));
   epPlayerSettings.put(
       "protect.disable.suffocate", config.getBoolean("protect.disable.suffocate", false));
   epPlayerSettings.put(
       "protect.disable.lavadmg", config.getBoolean("protect.disable.lavadmg", false));
   epPlayerSettings.put(
       "protect.disable.projectiles", config.getBoolean("protect.disable.projectiles", false));
   epPlayerSettings.put(
       "protect.disable.contactdmg", config.getBoolean("protect.disable.contactdmg", false));
   epPlayerSettings.put(
       "protect.disable.firedmg", config.getBoolean("protect.disable.firedmg", false));
   epPlayerSettings.put(
       "protect.disable.build", config.getBoolean("protect.disable.build", false));
   epPlayerSettings.put(
       "protect.disable.lightning", config.getBoolean("protect.disable.lightning", false));
   epPlayerSettings.put(
       "protect.disable.weather.lightning",
       config.getBoolean("protect.disable.weather.lightning", false));
   epPlayerSettings.put(
       "protect.disable.weather.storm", config.getBoolean("protect.disable.weather.storm", false));
   epPlayerSettings.put(
       "protect.disable.weather.thunder",
       config.getBoolean("protect.disable.weather.thunder", false));
   return epPlayerSettings;
 }
Пример #13
0
 public boolean getBedSetsHome() {
   return config.getBoolean("bed-sethome", false);
 }
Пример #14
0
 public Map<String, Boolean> getEpGuardSettings() {
   final Map<String, Boolean> epSettings = new HashMap<String, Boolean>();
   epSettings.put(
       "protect.prevent.lava-flow", config.getBoolean("protect.prevent.lava-flow", false));
   epSettings.put(
       "protect.prevent.water-flow", config.getBoolean("protect.prevent.water-flow", false));
   epSettings.put(
       "protect.prevent.water-bucket-flow",
       config.getBoolean("protect.prevent.water-bucket-flow", false));
   epSettings.put(
       "protect.prevent.fire-spread", config.getBoolean("protect.prevent.fire-spread", true));
   epSettings.put(
       "protect.prevent.flint-fire", config.getBoolean("protect.prevent.flint-fire", false));
   epSettings.put(
       "protect.prevent.portal-creation",
       config.getBoolean("protect.prevent.portal-creation", false));
   epSettings.put(
       "protect.prevent.lava-fire-spread",
       config.getBoolean("protect.prevent.lava-fire-spread", true));
   epSettings.put(
       "protect.prevent.tnt-explosion", config.getBoolean("protect.prevent.tnt-explosion", false));
   epSettings.put(
       "protect.prevent.creeper-explosion",
       config.getBoolean("protect.prevent.creeper-explosion", false));
   epSettings.put(
       "protect.prevent.creeper-playerdamage",
       config.getBoolean("protect.prevent.creeper-playerdamage", false));
   epSettings.put(
       "protect.prevent.creeper-blockdamage",
       config.getBoolean("protect.prevent.creeper-blockdamage", false));
   epSettings.put(
       "protect.prevent.entitytarget", config.getBoolean("protect.prevent.entitytarget", false));
   for (CreatureType ct : CreatureType.values()) {
     final String name = ct.toString().toLowerCase();
     epSettings.put(
         "protect.prevent.spawn." + name,
         config.getBoolean("protect.prevent.spawn." + name, false));
   }
   epSettings.put(
       "protect.prevent.lightning-fire-spread",
       config.getBoolean("protect.prevent.lightning-fire-spread", true));
   return epSettings;
 }
Пример #15
0
 public boolean getRespawnAtHome() {
   return config.getBoolean("respawn-at-home", false);
 }
Пример #16
0
 public boolean permissionBasedItemSpawn() {
   return config.getBoolean("permission-based-item-spawn", false);
 }
Пример #17
0
 public boolean getNetherPortalsEnabled() {
   return isNetherEnabled() && config.getBoolean("nether.portals-enabled", false);
 }
Пример #18
0
 public boolean getSortListByGroups() {
   return config.getBoolean("sort-list-by-groups", true);
 }
Пример #19
0
 public boolean isEcoDisabled() {
   return config.getBoolean("disable-eco", false);
 }
Пример #20
0
 public boolean spawnIfNoHome() {
   return config.getBoolean("spawn-if-no-home", false);
 }
Пример #21
0
 public boolean warnOnBuildDisallow() {
   return config.getBoolean("protect.disable.warn-on-build-disallow", false);
 }
Пример #22
0
 public boolean use1to1RatioInNether() {
   return config.getBoolean("nether.use-1to1-ratio", false);
 }
Пример #23
0
	private boolean _getGodModeEnabled()
	{
		return config.getBoolean("godmode", false);
	}
Пример #24
0
 public double getNetherRatio() {
   if (config.getBoolean("nether.use-1to1-ratio", false)) {
     return 1.0;
   }
   return config.getDouble("nether.ratio", 16.0);
 }
Пример #25
0
	private boolean _getJailed()
	{
		return config.getBoolean("jailed", false);
	}
Пример #26
0
 public boolean isDebug() {
   return config.getBoolean("debug", false);
 }
Пример #27
0
	private boolean _isSocialSpyEnabled()
	{
		return config.getBoolean("socialspy", false);
	}
Пример #28
0
 public boolean warnOnSmite() {
   return config.getBoolean("warn-on-smite", true);
 }
Пример #29
0
	private boolean _arePowerToolsEnabled()
	{
		return config.getBoolean("powertoolsenabled", true);
	}
Пример #30
0
 public boolean showNonEssCommandsInHelp() {
   return config.getBoolean("non-ess-in-help", true);
 }