Faction Config Help

Discussion in 'Spigot Plugin Help' started by Leonwilber, Jun 16, 2015.

  1. At the top of the factions config i want to stop factions in worlds called
    "PlotWorld" and "Hub"
    however i have tryed it lots of times and can never get the syntax right
    Code (Text):
    {
      "aliasesF": [
        "f"
      ],
      "worldsClaimingEnabled": {
        "standard": true,
        "exceptions": []
      },
      "worldsPowerLossEnabled": {
        "standard": true,
        "exceptions": []
      },
      "worldsPvpRulesEnabled": {
        "standard": true,
        "exceptions": []
      },
      "playersWhoBypassAllProtection": [],
      "taskPlayerPowerUpdateMinutes": 1.0,
      "taskPlayerDataRemoveMinutes": 5.0,
      "taskEconLandRewardMinutes": 20.0,
      "removePlayerWhenBanned": true,
      "removePlayerMillisDefault": 864000000,
      "removePlayerMillisPlayerAgeToBonus": {
        "1209600000": 864000000
      },
      "removePlayerMillisFactionAgeToBonus": {
        "2419200000": 864000000,
        "1209600000": 432000000
      },
      "defaultPlayerFactionId": "none",
      "defaultPlayerRole": "RECRUIT",
      "defaultPlayerPower": 0.0,
      "motdPriority": "NORMAL",
      "motdDelayTicks": -1,
      "powerMax": 10.0,
      "powerMin": 0.0,
      "powerPerHour": 2.0,
      "powerPerDeath": -2.0,
      "canLeaveWithNegativePower": true,
      "factionMemberLimit": 0,
      "factionPowerMax": 0.0,
      "factionNameLengthMin": 3,
      "factionNameLengthMax": 16,
      "factionNameForceUpperCase": false,
      "setRadiusMax": 30,
      "setFillMax": 1000,
      "claimsMustBeConnected": false,
      "claimsCanBeUnconnectedIfOwnedByOtherFaction": false,
      "claimingFromOthersAllowed": true,
      "claimMinimumChunksDistanceToOthers": 0,
      "claimsRequireMinFactionMembers": 1,
      "claimedLandsMax": 0,
      "homesEnabled": true,
      "homesMustBeInClaimedTerritory": true,
      "homesTeleportCommandEnabled": true,
      "homesTeleportAllowedFromEnemyTerritory": true,
      "homesTeleportAllowedFromDifferentWorld": true,
      "homesTeleportAllowedEnemyDistance": 32.0,
      "homesTeleportIgnoreEnemiesIfInOwnTerritory": true,
      "homesTeleportToOnDeathActive": false,
      "homesTeleportToOnDeathPriority": "NORMAL",
      "permanentFactionsDisableLeaderPromotion": false,
      "actionDeniedPainAmount": 2.0,
      "disablePVPForFactionlessPlayers": false,
      "enablePVPAgainstFactionlessInAttackersLand": false,
      "territoryShieldFactor": 0.1,
      "denyCommandsPermanentFactionMember": [],
      "denyCommandsTerritoryRelation": {
        "ENEMY": [
          "home",
          "homes",
          "sethome",
          "createhome",
          "tpahere",
          "tpaccept",
          "tpyes",
          "tpa",
          "call",
          "tpask",
          "warp",
          "warps",
          "spawn",
          "ehome",
          "ehomes",
          "esethome",
          "ecreatehome",
          "etpahere",
          "etpaccept",
          "etpyes",
          "etpa",
          "ecall",
          "etpask",
          "ewarp",
          "ewarps",
          "espawn",
          "essentials:home",
          "essentials:homes",
          "essentials:sethome",
          "essentials:createhome",
          "essentials:tpahere",
          "essentials:tpaccept",
          "essentials:tpyes",
          "essentials:tpa",
          "essentials:call",
          "essentials:tpask",
          "essentials:warp",
          "essentials:warps",
          "essentials:spawn",
          "wtp",
          "uspawn",
          "utp",
          "mspawn",
          "mtp",
          "fspawn",
          "ftp",
          "jspawn",
          "jtp"
        ],
        "NEUTRAL": [],
        "TRUCE": [],
        "ALLY": [],
        "MEMBER": []
      },
      "chatSetFormat": true,
      "chatSetFormatAt": "LOWEST",
      "chatSetFormatTo": "{factions_relcolor}{factions_roleprefix}§r{factions_relcolor}{factions_name|rp}§f%1$s: %2$s",
      "chatParseTags": true,
      "chatParseTagsAt": "LOW",
      "colorMember": "GREEN",
      "colorAlly": "DARK_PURPLE",
      "colorTruce": "LIGHT_PURPLE",
      "colorNeutral": "WHITE",
      "colorEnemy": "RED",
      "colorNoPVP": "GOLD",
      "colorFriendlyFire": "DARK_RED",
      "prefixLeader": "**",
      "prefixOfficer": "*",
      "prefixMember": "+",
      "prefixRecruit": "-",
      "handleExploitObsidianGenerators": true,
      "handleExploitEnderPearlClipping": true,
      "handleExploitTNTWaterlog": false,
      "seeChunkSteps": 1,
      "seeChunkKeepEvery": 5,
      "seeChunkSkipEvery": 0,
      "seeChunkPeriodMillis": 500,
      "seeChunkParticleAmount": 30,
      "seeChunkParticleOffsetY": 2.0,
      "seeChunkParticleDeltaY": 2.0,
      "logFactionCreate": true,
      "logFactionDisband": true,
      "logFactionJoin": true,
      "logFactionKick": true,
      "logFactionLeave": true,
      "logLandClaims": true,
      "logLandUnclaims": true,
      "logMoneyTransactions": true,
      "logPlayerCommands": true,
      "materialsEditOnInteract": [
        "DIODE_BLOCK_OFF",
        "DIODE_BLOCK_ON",
        "NOTE_BLOCK",
        "CAULDRON",
        "SOIL"
      ],
      "materialsEditTools": [
        "FIREBALL",
        "FLINT_AND_STEEL",
        "BUCKET",
        "WATER_BUCKET",
        "LAVA_BUCKET",
        "ARMOR_STAND"
      ],
      "materialsEditToolsDupeBug": [
        "CHEST",
        "SIGN_POST",
        "TRAPPED_CHEST",
        "SIGN",
        "WOOD_DOOR",
        "IRON_DOOR"
      ],
      "materialsDoor": [
        "WOODEN_DOOR",
        "ACACIA_DOOR",
        "BIRCH_DOOR",
        "DARK_OAK_DOOR",
        "JUNGLE_DOOR",
        "SPRUCE_DOOR",
        "TRAP_DOOR",
        "FENCE_GATE",
        "ACACIA_FENCE_GATE",
        "BIRCH_FENCE_GATE",
        "DARK_OAK_FENCE_GATE",
        "JUNGLE_FENCE_GATE",
        "SPRUCE_FENCE_GATE"
      ],
      "materialsContainer": [
        "DISPENSER",
        "CHEST",
        "FURNACE",
        "BURNING_FURNACE",
        "JUKEBOX",
        "BREWING_STAND",
        "ENCHANTMENT_TABLE",
        "ANVIL",
        "BEACON",
        "TRAPPED_CHEST",
        "HOPPER",
        "DROPPER"
      ],
      "entityTypesEditOnInteract": [
        "ITEM_FRAME",
        "ARMOR_STAND"
      ],
      "entityTypesEditOnDamage": [
        "ITEM_FRAME",
        "ARMOR_STAND"
      ],
      "entityTypesContainer": [
        "MINECART_CHEST",
        "MINECART_HOPPER"
      ],
      "entityTypesMonsters": [
        "BLAZE",
        "CAVE_SPIDER",
        "CREEPER",
        "ENDERMAN",
        "ENDER_DRAGON",
        "GUARDIAN",
        "GHAST",
        "GIANT",
        "MAGMA_CUBE",
        "PIG_ZOMBIE",
        "SILVERFISH",
        "SKELETON",
        "SLIME",
        "SPIDER",
        "WITCH",
        "WITHER",
        "ZOMBIE"
      ],
      "herochatFactionName": "Faction",
      "herochatFactionNick": "F",
      "herochatFactionFormat": "{color}[&l{nick}&r{color} &l{factions_roleprefix}&r{color}{factions_title|rp}{sender}{color}] &f{msg}",
      "herochatFactionColor": "GREEN",
      "herochatFactionDistance": 0,
      "herochatFactionIsShortcutAllowed": false,
      "herochatFactionCrossWorld": true,
      "herochatFactionMuted": false,
      "herochatFactionWorlds": [],
      "herochatAlliesName": "Allies",
      "herochatAlliesNick": "A",
      "herochatAlliesFormat": "{color}[&l{nick}&r&f {factions_relcolor}&l{factions_roleprefix}&r{factions_relcolor}{factions_name|rp}{sender}{color}] &f{msg}",
      "herochatAlliesColor": "DARK_PURPLE",
      "herochatAlliesDistance": 0,
      "herochatAlliesIsShortcutAllowed": false,
      "herochatAlliesCrossWorld": true,
      "herochatAlliesMuted": false,
      "herochatAlliesWorlds": [],
      "lwcMustHaveBuildRightsToCreate": true,
      "lwcRemoveIfNoBuildRights": false,
      "lwcRemoveOnChange": {
        "BUY": false,
        "SELL": false,
        "CONQUER": false,
        "PILLAGE": false
      },
      "econEnabled": false,
      "econLandReward": 0.0,
      "econUniverseAccount": "",
      "econChunkCost": {
        "BUY": 1.0,
        "SELL": 0.0,
        "CONQUER": 0.0,
        "PILLAGE": 0.0
      },
      "econCostCreate": 100.0,
      "econCostSethome": 0.0,
      "econCostJoin": 0.0,
      "econCostLeave": 0.0,
      "econCostKick": 0.0,
      "econCostInvite": 0.0,
      "econCostDeinvite": 0.0,
      "econCostHome": 0.0,
      "econCostName": 0.0,
      "econCostDescription": 0.0,
      "econCostTitle": 0.0,
      "econCostFlag": 0.0,
      "econRelCost": {
        "ENEMY": 0.0,
        "ALLY": 0.0,
        "TRUCE": 0.0,
        "NEUTRAL": 0.0
      },
      "bankEnabled": true,
      "bankFactionPaysCosts": true,
      "bankFactionPaysLandCosts": true
    }
     
  2. Code (Text):

        "exceptions": [
        "PlotWorld",
        "Hub"
        ],
     
  3. For my test server i did this:
    Code (Text):
      "worldsClaimingEnabled": {
        "standard": true,
        "exceptions": [
        "world_nether"
        ],
      },
    however i got this error when i started the server
    Code (Text):
    [20:13:21] [Server thread/INFO]: [Factions] Enabling Factions v2.7.5
    [20:13:21] [Server thread/INFO]: [0;36;22m[[0;36;1mFactions 2.7.5[0;36;22m] [0;33;1m=== ENABLE START ===[m
    [20:13:22] [Server thread/ERROR]: Error occurred while enabling Factions v2.7.5 (Is it up to date?)
    com.massivecraft.massivecore.xlib.gson.JsonSyntaxException: com.massivecraft.massivecore.xlib.gson.stream.MalformedJsonException: Expected name at line 10 column 4 path $.worldsClaimingEnabled.exceptions
        at com.massivecraft.massivecore.xlib.gson.internal.Streams.parse(Streams.java:57) ~[?:?]
        at com.massivecraft.massivecore.xlib.gson.JsonParser.parse(JsonParser.java:84) ~[?:?]
        at com.massivecraft.massivecore.xlib.gson.JsonParser.parse(JsonParser.java:59) ~[?:?]
        at com.massivecraft.massivecore.xlib.gson.JsonParser.parse(JsonParser.java:45) ~[?:?]
        at com.massivecraft.massivecore.store.DriverFlatfile.loadFileJson(DriverFlatfile.java:150) ~[?:?]
        at com.massivecraft.massivecore.store.DriverFlatfile.loadFile(DriverFlatfile.java:136) ~[?:?]
        at com.massivecraft.massivecore.store.DriverFlatfile.loadAll(DriverFlatfile.java:176) ~[?:?]
        at com.massivecraft.massivecore.store.Coll.initLoadAllFromRemote(Coll.java:852) ~[?:?]
        at com.massivecraft.massivecore.store.Coll.init(Coll.java:947) ~[?:?]
        at com.massivecraft.factions.entity.MConfColl.init(MConfColl.java:29) ~[?:?]
        at com.massivecraft.factions.Factions.onEnable(Factions.java:131) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot.jar:git-Spigot-1d14d5f-ba32592]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335) [spigot.jar:git-Spigot-1d14d5f-ba32592]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-1d14d5f-ba32592]
        at org.bukkit.craftbukkit.v1_8_R2.CraftServer.loadPlugin(CraftServer.java:356) [spigot.jar:git-Spigot-1d14d5f-ba32592]
        at org.bukkit.craftbukkit.v1_8_R2.CraftServer.enablePlugins(CraftServer.java:316) [spigot.jar:git-Spigot-1d14d5f-ba32592]
        at net.minecraft.server.v1_8_R2.MinecraftServer.r(MinecraftServer.java:416) [spigot.jar:git-Spigot-1d14d5f-ba32592]
        at net.minecraft.server.v1_8_R2.MinecraftServer.k(MinecraftServer.java:382) [spigot.jar:git-Spigot-1d14d5f-ba32592]
        at net.minecraft.server.v1_8_R2.MinecraftServer.a(MinecraftServer.java:337) [spigot.jar:git-Spigot-1d14d5f-ba32592]
        at net.minecraft.server.v1_8_R2.DedicatedServer.init(DedicatedServer.java:257) [spigot.jar:git-Spigot-1d14d5f-ba32592]
        at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:522) [spigot.jar:git-Spigot-1d14d5f-ba32592]
        at java.lang.Thread.run(Unknown Source) [?:1.7.0_55]
    Caused by: com.massivecraft.massivecore.xlib.gson.stream.MalformedJsonException: Expected name at line 10 column 4 path $.worldsClaimingEnabled.exceptions
        at com.massivecraft.massivecore.xlib.gson.stream.JsonReader.syntaxError(JsonReader.java:1573) ~[?:?]
        at com.massivecraft.massivecore.xlib.gson.stream.JsonReader.doPeek(JsonReader.java:508) ~[?:?]
        at com.massivecraft.massivecore.xlib.gson.stream.JsonReader.hasNext(JsonReader.java:417) ~[?:?]
        at com.massivecraft.massivecore.xlib.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[?:?]
        at com.massivecraft.massivecore.xlib.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[?:?]
        at com.massivecraft.massivecore.xlib.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[?:?]
        at com.massivecraft.massivecore.xlib.gson.internal.Streams.parse(Streams.java:45) ~[?:?]
        ... 21 more
    [20:13:23] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
     
    Any ideas?
     
  4. No idea. I don't use that version of Factions either so.. yea lol.
     
  5. I have this in my config, I'm not sure if this is right but it works
    Code (Text):
    {
      "aliasesF": [
        "f"
      ],
      "worldsClaimingEnabled": {
        "standard": true,
        "exceptions": [pvp]
      },
      "worldsPowerLossEnabled": {
        "standard": true,
        "exceptions": [pvp]
      },
      "worldsPvpRulesEnabled": {
        "standard": true,
        "exceptions": [pvp]
     
    • Like Like x 1
  6. YOU LIFESAVER! thank you so much
     
    • Like Like x 1