Solved How to enable factions in only one world

Discussion in 'Bukkit Help' started by ZeroForce, Aug 14, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    ZeroForce

    Hello,
    I followed all the instructions on many different threads about how to disable factions (and factions commands) in all worlds but one.
    When I try editing the files, factions just simply doesn't load.
    Do you know how to disable factions in all worlds but my factions world, surprise surprise, named "factions"?
    I also want to disable all the factions commands except for in the factions world.
    Does anyone know how to do this?
    Thanks.
     
  2. Offline

    JWhy

    Open up /mstore/factions_mconf/instance.json and insert your world name into these three lists:
    Code:
        "worldsNoClaiming": ["myworldname"],
        "worldsNoPowerLoss": ["myworldname"],
        "worldsIgnorePvP": ["myworldname"],
    Just replace myworldname with the actual world name
     
  3. Offline

    ZeroForce

    Do I replace "myworldname" with the name of my factions world or the names of all my other worlds?
     
  4. Offline

    JWhy

    You put the names of all worlds, where you DON'T want any Factions activity
     
  5. Offline

    ZeroForce

    ok, seperated by commas like this?

    [world1,world2,world3]
     
  6. Offline

    JWhy

    yeah, but in quotes
    Code:
        "worldsNoClaiming": ["freebuild", "minigames", "mobarena"],
        "worldsNoPowerLoss": ["freebuild", "minigames", "mobarena"],
        "worldsIgnorePvP": ["freebuild", "minigames", "mobarena"],
    
     
  7. Offline

    ZeroForce

    Oh, that explains why it didn't work the first time.
    Thank you so much for all your help!

    When I disable it, and when I type /f, it just says unknown command.
    I'm guessing factions was disabled due to an error. Do you know whats wrong?
    Here is the section in my instance.json:

    "worldsNoClaiming": ["hub","world","world_nether","world_the_end","survival3","creative","MCSGLobby','Skyblock_Lobby','skyworld',"CTF_Map-Two_Towers","MoonlightLake","wronsworld","LostMine"],
    "worldsNoPowerLoss": ["hub","world","world_nether","world_the_end","survival3","creative","MCSGLobby','Skyblock_Lobby','skyworld',"CTF_Map-Two_Towers","MoonlightLake","wronsworld","LostMine"],
    "worldsIgnorePvP": ["hub","world","world_nether","world_the_end","survival3","creative","MCSGLobby','Skyblock_Lobby','skyworld',"CTF_Map-Two_Towers","MoonlightLake","wronsworld","LostMine"],

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
  8. Offline

    JWhy

    You used some single quotes around Skyblock_Lobby. That won't work out
     
  9. Offline

    ZeroForce

    ok, so it's just a simple typing error.
    Thanks so much for your constant help and your patience :)

    Losing power when you die is now only enabled in the factions world, but how do I make it so people can only use the factions commands in the factions world?
    I use groupmanager for permissions.
    Does anyone know how to do this?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
  10. Offline

    JWhy

    At all that world isn't effected by the factions plugin anymore, so to completely disable the commands in that world you could deny the permissions in that world using multiworld permissions. To do so with GroupManager you'd just negotiate factions.* in plugins/GroupManager/worlds/<worldname>/group.yml.
    Code:
    groups:
      Default:
        default: true
        permissions:
        - -factions.*
     
  11. Offline

    ZeroForce

    right now i only have one world folder, called "world" which applies to all my worlds in multiverse.
    When I try to delete it and make folders titled with the specific world names, it just creates the world folder again with the default permissions and groups, negating the effect of the other worlds.
    Do you know how to fix this?
     
  12. Offline

    JWhy

    I can't tell, sorry, I'm not actively using GM.
    For sure necrodoom can help
     
  13. Offline

    Necrodoom

    go to plugins/groupmanager/config.yml, remove all_unnamed_worlds mirror.
     
  14. Offline

    ZeroForce

    I did this, and I created a seperate folder for factions, and it created new groups and everything just fine!
    However, people still have permissions to use factions commands in all the other worlds for some reason.
    Is there any way to make it so people are not allowed to use factions commands in all the other worlds?
    Thanks

    I did this, but people can still do /f create <faction name> in my survival world.
    Do you know how to make it so people don't have factions permissions by default?
    Thanks.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
  15. Offline

    JWhy

    Did you negotiate factions.kit.halfplayer and/or factions.*?
    Check that please, if you don't have success please post the file on pastebin.com
     
  16. Offline

    ZeroForce

    I tried negating both, but it still doesn't work.

    Here is the link to my groups.yml in "world": http://pastebin.com/GWqtfXUW

    Btw, world is a mirror for all worlds except for the factions world.
     
  17. Offline

    JWhy

    I don't know GroupManager's behaviors that well, but officially nodes are negotiated by putting the dash directly before the node, you put a space between tho.
    - -negative.node
     
  18. Offline

    ZeroForce

    Actually, I got it working! :D
    Thank you to JWhy, necrodoom, and willeh for all your help in assisting me with my problems.
    It turned out to be a spacing error in the negative nodes.
    Thank you all!
     
  19. Offline

    marmar0702

    Here is my instance.json file could you JWhy check if it is all correct please?


    {
    "worldsNoClaiming": ["island-0", "minigames", "freebuild", "hub", "normal"],
    "worldsNoPowerLoss": ["island-0", "minigames", "freebuild", "hub", "normal"],
    "worldsIgnorePvP": ["island-0", "minigames", "freebuild", "hub", "normal"],
    "enabled": true,
    "factionIdNone": "b78e53c7-f130-46ef-b1b3-5987a25e4917",
    "factionIdSafezone": "5378fd0c-32f0-414c-a89d-90096e8d1748",
    "factionIdWarzone": "f2e0b675-1699-4dbe-858e-c4be5a1f5bc6",
    "defaultPlayerFactionId": "b78e53c7-f130-46ef-b1b3-5987a25e4917",
    "defaultPlayerRole": "RECRUIT",
    "defaultPlayerPower": 0.0,
    "defaultFactionOpen": false,
    "defaultFactionFlags": {
    "PERMANENT": false,
    "PEACEFUL": false,
    "INFPOWER": false,
    "POWERLOSS": true,
    "PVP": true,
    "FRIENDLYFIRE": false,
    "MONSTERS": true,
    "EXPLOSIONS": true,
    "OFFLINE_EXPLOSIONS": false,
    "FIRESPREAD": true,
    "ENDERGRIEF": false
    },
    "defaultFactionPerms": {
    "BUILD": [
    "LEADER",
    "OFFICER",
    "MEMBER",
    "ALLY"
    ],
    "PAINBUILD": [],
    "DOOR": [
    "LEADER",
    "OFFICER",
    "MEMBER",
    "RECRUIT",
    "ALLY"
    ],
    "BUTTON": [
    "LEADER",
    "OFFICER",
    "MEMBER",
    "RECRUIT",
    "ALLY"
    ],
    "LEVER": [
    "LEADER",
    "OFFICER",
    "MEMBER",
    "RECRUIT",
    "ALLY"
    ],
    "CONTAINER": [
    "LEADER",
    "OFFICER",
    "MEMBER"
    ],
    "INVITE": [
    "LEADER",
    "OFFICER"
    ],
    "KICK": [
    "LEADER",
    "OFFICER"
    ],
    "SETHOME": [
    "LEADER",
    "OFFICER"
    ],
    "WITHDRAW": [
    "LEADER",
    "OFFICER"
    ],
    "TERRITORY": [
    "LEADER",
    "OFFICER"
    ],
    "ACCESS": [
    "LEADER",
    "OFFICER"
    ],
    "DISBAND": [
    "LEADER"
    ],
    "PERMS": [
    "LEADER"
    ]
    },
    "broadcastNameChange": false,
    "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,
    "claimsMustBeConnected": true,
    "claimingFromOthersAllowed": true,
    "claimsCanBeUnconnectedIfOwnedByOtherFaction": false,
    "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.3,
    "denyCommandsPermanentFactionMember": [],
    "denyCommandsTerritoryRelation": {
    "ENEMY": [
    "home",
    "sethome",
    "tpahere",
    "tpaccept",
    "tpa",
    "warp",
    "warps",
    "spawn",
    "ehome",
    "esethome",
    "etpahere",
    "etpaccept",
    "etpa",
    "ewarp",
    "ewarps",
    "espawn",
    "wtp",
    "uspawn",
    "utp",
    "mspawn",
    "mtp",
    "fspawn",
    "ftp",
    "jspawn",
    "jtp"
    ],
    "NEUTRAL": [],
    "TRUCE": [],
    "ALLY": [],
    "MEMBER": []
    },
    "lwcRemoveOnChange": {
    "BUY": false,
    "SELL": false,
    "CONQUER": false,
    "PILLAGE": false
    },
    "econEnabled": false,
    "econLandReward": 0.0,
    "econUniverseAccount": "",
    "econChunkCost": {
    "BUY": 30.0,
    "SELL": -20.0,
    "CONQUER": -10.0,
    "PILLAGE": -10.0
    },
    "econCostCreate": 200.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,
    "econCostOpen": 0.0,
    "econRelCost": {
    "ENEMY": 0.0,
    "ALLY": 0.0,
    "TRUCE": 0.0,
    "NEUTRAL": 0.0
    },
    "bankEnabled": true,
    "bankFactionPaysCosts": true,
    "bankFactionPaysLandCosts": true
    }
     
  20. Offline

    JWhy

    marmar0702: That JSON data looks good, do you get any errors?
     
  21. Offline

    marmar0702

    I haven't tried it yet, I just wanted to check if it was all was correct. I will give it a try now JWhy
    Thanks for you're reply.
    - Mark

    When I go onto my server the members on my server can't use factions in any world.
    I use PEX. Here is the file on pastebin : http://pastebin.com/pAmux0PS
    Could you see if there are any errors in my PEX and could you also try to make everyone inherit the Member group and make it so everyone can only use factions in the factions world please JWhy.

    If you could do this for me I would greatly appreciate it.
    Thanks for all the help so far,
    - Mark

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
  22. Offline

    JWhy

  23. Offline

    marmar0702

    May I ask what you have changed? JWhy

    Anyways, thanks for cleaning up my PEX JWhy. All I want to do is make factions only work in the world "factions" and I don't know how to do it. Could you please explain step-by-step how to do it please.

    Your words : At all that world isn't effected by the factions plugin anymore, so to completely disable the commands in that world you could deny the permissions in that world using multiworld permissions. To do so with GroupManager you'd just negotiate factions.* in plugins/GroupManager/worlds/<worldname>/group.yml.

    This is what i'm trying to do but how would I do it with PEX?

    The JSON data that I posted earlier in the thread doesn't seem to be making any effect on the server. Since FTP File Access (I use MC Pro Hosting yeah) has not been working the past few days it is possible that I uploaded the JSON Data incorrectly.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
  24. Offline

    JWhy

    marmar0702: Here's the diff: http://pastebin.com/diff.php?i=Uh6tfuHw
    For PEX it's the same, you put -factions.* to the permissions list of every group that you want do deny factions access, put it into a world permissions list of a group to deny it only within one world.
     
    marmar0702 likes this.
  25. Offline

    marmar0702

    I just have a few quick questions :

    1. Where do I find the worlds permissions list or do I need to create it, if I have to create it where world it go?
    2. What do I put into the worlds permissions list : the whole PEX permissions.yml file? or do I have to create a whole new file with a totally new format?

    Here is the link to my PEX that I have updated by adding " - -factions* " to all the groups I dont wan't to be able to use factions in the worlds I want it to be disabled in.
    pastebin link : http://pastebin.com/m2kznHTp

    Could you please check that I have not made any mistakes in the pastebin document I mentioned above please. :)


    Thanks for the help JWhy
    -Mark
     
  26. Offline

    marmar0702

    Just ignore those questions JWhy.
    I actually got it working in the end. Thank you for your constant help and support.

    Thanks a bunch,
    - Mark
     
  27. Offline

    TekeDome

    JWhy I am having the same problem, only with skywars. Can you help me figure out why?

    I can't hurt my friend in there because we are in the same faction
     
  28. Offline

    JWhy

  29. Offline

    claw107

    Hi, I have been having trouble with this. I removed the [ as I saw to do on another website and I put " between my world name.
    Heres my instance.json:
    {
    "aliasesF": [
    "f"
    ],
    "taskPlayerPowerUpdateMinutes": 1.0,
    "taskPlayerDataRemoveMinutes": 5.0,
    "taskEconLandRewardMinutes": 20.0,
    "removePlayerDataWhenBanned": true,
    "removePlayerDataAfterInactiveDays": 20.0,
    "radiusClaimFailureLimit": 9,
    "radiusClaimRadiusLimit": 5,
    "chatSetFormat": false,
    "chatSetFormatAt": "LOWEST",
    "chatSetFormatTo": "<{factions_relcolor}§l{factions_roleprefix}§r{factions_relcolor}{factions_name|rp}§f%1$s> %2$s",
    "chatParseTags": true,
    "chatParseTagsAt": "LOW",
    "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": [],
    "colorMember": "GREEN",
    "colorAlly": "DARK_PURPLE",
    "colorTruce": "LIGHT_PURPLE",
    "colorNeutral": "WHITE",
    "colorEnemy": "RED",
    "colorNoPVP": "GOLD",
    "colorFriendlyFire": "DARK_RED",
    "prefixLeader": "**",
    "prefixOfficer": "*",
    "prefixMember": "+",
    "prefixRecruit": "-",
    "playersWhoBypassAllProtection": [],
    "worldsNoClaiming": "world",
    "worldsNoPowerLoss": "world",
    "worldsIgnorePvP": "world",
    "handleExploitObsidianGenerators": true,
    "handleExploitEnderPearlClipping": true,
    "handleExploitTNTWaterlog": false,
    "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"
    ],
    "materialsDoor": [
    "WOODEN_DOOR",
    "TRAP_DOOR",
    "FENCE_GATE"
    ],
    "materialsContainer": [
    "DISPENSER",
    "CHEST",
    "FURNACE",
    "BURNING_FURNACE",
    "JUKEBOX",
    "BREWING_STAND",
    "ENCHANTMENT_TABLE",
    "ANVIL",
    "BEACON",
    "TRAPPED_CHEST",
    "HOPPER",
    "DROPPER"
    ],
    "entityTypesMonsters": [
    "BLAZE",
    "CAVE_SPIDER",
    "CREEPER",
    "ENDERMAN",
    "ENDER_DRAGON",
    "GHAST",
    "GIANT",
    "MAGMA_CUBE",
    "PIG_ZOMBIE",
    "SILVERFISH",
    "SKELETON",
    "SLIME",
    "SPIDER",
    "WITCH",
    "WITHER",
    "ZOMBIE"
    ],
    "dynmapUse": true,
    "dynmapUpdateLog": false,
    "dynmapLayerName": "Factions",
    "dynmapLayerVisible": true,
    "dynmapLayerPriority": 2,
    "dynmapLayerMinimumZoom": 0,
    "dynmapDescription": "<div class=\"infowindow\">\n<span style=\"font-weight: bold; font-size: 150%;\">%name%</span></br>\n<span style=\"font-style: italic; font-size: 110%;\">%description%</span></br>\n</br>\n<span style=\"font-weight: bold;\">Leader:</span> %players.leader%</br>\n<span style=\"font-weight: bold;\">Officers:</span> %players.officers.count%</br>\n<span style=\"font-weight: bold;\">Members:</span> %players.members.count%</br>\n<span style=\"font-weight: bold;\">Recruits:</span> %players.recruits.count%</br>\n<span style=\"font-weight: bold;\">TOTAL:</span> %players.count%</br>\n</br>\n<span style=\"font-weight: bold;\">Age:</span> %age%</br>\n<span style=\"font-weight: bold;\">Bank:</span> %money%</br>\n</br>\n<span style=\"font-weight: bold;\">Flags:</span></br>\n%open.color% | %permanent.color% | %peaceful.color% | %infpower.color% | %powerloss.color%</br>\n%pvp.color% | %friendlyfire.color% | %monsters.color% | %explosions.color%</br>\n%offlineexplosions.color% | %firespread.color% | %endergrief.color%\n</div>",
    "dynmapDescriptionMoney": false,
    "dynmapVisibilityByFaction": true,
    "dynmapVisibleFactions": [],
    "dynmapHiddenFactions": [],
    "dynmapDefaultStyle": {
    "lineColor": "#00FF00",
    "lineOpacity": 0.8,
    "lineWeight": 3,
    "fillColor": "#00FF00",
    "fillOpacity": 0.35,
    "homeMarker": "greenflag",
    "boost": false
    },
    "dynmapFactionStyles": {
    "SafeZone": {
    "lineColor": "#FF00FF",
    "fillColor": "#FF00FF",
    "boost": false
    },
    "WarZone": {
    "lineColor": "#FF0000",
    "fillColor": "#FF0000",
    "boost": false
    }
    }
    }
     
  30. Offline

    JWhy

    Put the world name(s) into brackets:
    Code:
    "worldsNoClaiming": ["world"],
    "worldsNoPowerLoss": ["world"],
    "worldsIgnorePvP": ["world"],
     
Thread Status:
Not open for further replies.

Share This Page