[Factions] Edit factions config to get player count of a faction?

Discussion in 'Plugin Development' started by mcneproj, Jul 29, 2019.

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

    mcneproj

    Hello, I am hoping to find a way to only allow factions on my server to claim the amount of chunks equal to the players in their faction. I seen this in the config:
    "claimedLandsMax": 0,
    And i dont know if something like this would work:
    "claimedLandsMax": "faction.getMPlayers().size()",
    Has anybody tried this before? Is there a way to do it?
     
  2. Offline

    Machine Maker

    Well I don't think that will work. Options in configuration files are static values. They are not dynamic (aka change based on other factors). You probably cannot do this with the plugin unless it is a feature of the plugin. What factions plugin are you using?
     
  3. Offline

    mcneproj

    I am using MassiveCrafts faction plugin

    I wonder if i can dl and recompile the source with a change to the MConf.java to be player size of faction

    Or if theres a way to give faction owner the amount of money that it costs to claim a chunk per each player in their faction

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 29, 2019
  4. Offline

    Machine Maker

    It might be better for you to ask on the Plugin page itself as they can give you better help with that specific plugin.
     
Thread Status:
Not open for further replies.

Share This Page