[INACTIVE][SEC/FUN] Factions v1.1.7 - Guilds, War and user-controlled antigrief [733]

Discussion in 'Inactive/Unsupported Plugins' started by Olof Larsson, Feb 6, 2011.

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

    Olof Larsson

    Factions - Guilds, War and user-controlled antigrief :)
    By Olof Larsson and Brettflan.

    Current version: 1.1.7
    Download: https://github.com/oloflarsson/Factions/tree/master/releases
    Source: https://github.com/oloflarsson/Factions
    Read the full userguide here: http://mcteam.org/plugins/factions

    This plugin will allow the players on the server to create factions/guilds. The factions can claim territory that will be protected from non-members. Factions can forge alliances and declare themselves enemies with others. Land may be taken from other factions through war.

    The goals of this plugin:
    • The players should be able to take care of anti-griefing themselves.
    • Inspire politics and intrigues on your server.
    • Guilding and team spirit! :)
    Fork me on github!
    I would be glad to code on this plugin together with you :). Please fork me on github and do a pull request. Read more here:

    There will be cake if you join me in the coding [cake] :)

    Read the full userguide here: http://mcteam.org/factions <-[cake]

    The chat console command is:
    • /f
    This command has subcommands like:
    • /f create my faction name
    • /f invite my friends name
    • /f claim
    • /f map
    • ... etc
    You may also read the documentation ingame as the plugin ships with an ingame help manual. Read the help pages like this:
    • /f help 1
    • /f help 2
    • /f help 1
    Note that you may optionally skip the slash and just write
    • f
    1. Download: https://github.com/oloflarsson/Factions/tree/master/releases
    2. Put Factions.jar in your plugins folder
    If you have Permissions installed you will need to configure it. Read more here.

    Current ToDo list:
    1. More admin controll, for example reassign faction admins.
    2. Command to reload config file.
    3. Give factions a limited number of separate territories. "You may only claim at the border of your territory". Purpose of this is to stop players from claiming land in a scattered way. Factions will be more stationary. This will encourage factions to build one main town.
    Version 1.1.7

    • Package structure changed to move it out of com.bukkit.* namespace (Olof Larsson)
    • Removed Help plugin support as that plugin is not updated. (Olof Larsson)
    • Changed name for No Faction to Wilderness (Olof Larsson)
    • New unclaimall command (/f unclaimall) to unclaim all of the faction's land (Olof Larsson)
    • Safezone claiming command now has optional radius input (/f safe [radius]) to claim a larger safezone area at a time (Olof Larsson)
    • Added check to make sure chatTagInsertIndex is valid before using it, to prevent triggering an exception (Brettflan)
    • Players who aren't currently in a faction should no longer get "Person left your faction" messages when others join a faction (Brettflan)
    • Attempt at simple workaround for error related to NPCs from Citizens plugin (Brettflan)
    • Placement and removal of paintings is now prevented if you're in another faction's territory (Brettflan)
    • /f map has been updated to fit inside the new Bukkit line-width limits (39 tiles wide instead of 49) (Brettflan)
    EDIT: by the way, you do need to have build 726 or newer of CraftBukkit (RB 733, for instance) since the painting events were added then.
    More changelog:
    Show Spoiler

    Version 1.1.5 (By Brettflan)
    • Fix for left-clicking on wooden doors not being detected
    • Fix for null faction home location when loading factions data
    • Added "factions.adminBypass" permission which will allow players with that permission to bypass the building/destruction and usage limitations inside faction territory
    • New boolean config options territoryBlockTNT (default false), safeZoneDenyBuild (default true), safeZoneDenyUseage (default true), safeZoneBlockTNT (default true).

    Version 1.1.3 (By Brettflan)
    • updated to work with RB 600/602
    • handled a couple of potential NPEs, one caused when saving faction info, and one where it could try sending messages to a player who is offline or otherwise doesn't currently exist for whatever reason
    • fix/workaround for bucket usage not always being detected if 2-3 blocks away
    • faction-tagged chat messages sent to the console and log now have crufty color tags (like "§f" and such) stripped out
    Version 1.1.2
    • bugfix - admins could not place signs etc in safezones (Olof Larsson)
    • Added some missing instaDestroyItems (painting and flowers) (Olof Larsson)
    • Added ability to load old pre-1.1 data files (board, factions, followers) if they exist and new files don't (Brettflan)
    Version 1.1 (by Olof Larsson)
    To upgrade: Remove you Factions folder
    I'm sorry about that. There just are so many changes to the save files.
    • Permissions plugin support
    • Help plugin support
    • Faction homes
    • Better save file format
    • Inactive players are kicked from their faction
    • SafeZones - PVP and monster safe areas
    Version 1.0 beta7 (by Brettflan)
    • Fix for enemy attacks potentially healing people in their own territory due to armor calculations, instead of correctly just giving reduced damage.
    • Placement/use of these items inside another faction's territory is now prevented: redstone wire, sign, flint&steel, bucket (empty, water, and lava).
      Code is also in place to prevent placement of beds and repeaters, but CraftBukkit doesn't properly detect those yet.
    • Fix for destruction of certain blocks not previously being detected and prevented: torch, redstone torch, repeater, redstone wire, sapling, crops, sugar cane.
    • Minor spelling and grammar fixes
    • Added options "territoryBlockCreepers" and "territoryBlockFireballs" to configuration file (conf.json). These both default to disabled. If enabled, they will respectively prevent creepers or ghast fireballs from destroying blocks if they explode inside faction owned territory. These can prevent griefing by way of luring creepers into another faction's territory.
      Note that both explosion types will still hurt nearby players and mobs, they just won't destroy blocks.
      Also note that "territoryBlockFireballs" only works in CB build 557 and higher, where fireball detection was added.
    Version 1.0 beta6
    To upgrade:
    Factions now use world name instead of world id for the board files.
    Nothing will be claimed when you start the server. Change the board file name(s)
    from something like 234978619762348768.json to something like world.json.
    • Updated to work with Craftbukkit 493 (by Brettflan)
    • Paginated faction listing (by Brettflan)
    • Single jar install (by Brettflan)
    • Board files now use world name instead of world id (by Olof Larsson)
    Version 1.0 beta5
    • Updated to work with Craftbukkit 450, which means Minecraft 1.3 compatibility :)
    • For now messages like these are removed: "Playername tried to use Wooden door in your territory". They could be used for chat spamming.
    Version 1.0 beta4
    To upgrade: Start and stop the server once with the new jar. Paste the content from board.json into the newly created file in /plugins/Faction/boards/. After this you can delete board.json.
    • MultiWorld support.
    • Faction chat is now something you turn on and of.
    • Arrows are now included in the friendly fire filter.
    • Some stability fixes.
    Version 1.0 beta3
    To upgrade: Delete conf.json and rename the "name" field to "tag" in every faction.json file.
    • Greatly improved chat and messaging system! :D
      Cooperates well with other plugins. Tested with Essentials and iChat so far.
    • New faction chat command
    • More config options
    • Bugfix: You can now claim land from enemies :p
    • ... and a lot of other fixes
    Version 1.0 beta2
    • There is now a config file where you may alter chat colors, dynamics of war etc.
      I will add documentation on the config soon...
    • Made the color formating a bit more understandable.
    • There is now a broadcast when a new faction is created.
    Version 1.0 beta1
    • The first release
  2. Offline

    lennie svensson

    i have a question, i want the plugin to work like this, only have it so operators can make the factions, now everyone can make many factions, is there anyway i can make it only so the operators can make factions?=)
  3. Offline


    atm no
  4. Offline


    Is there anyway I can change the amount of land a faction can claim with admin powers with out adding more poeple to the factions.
  5. Offline


    Sure thing. I probably won't have time to contribute a lot in the long run, but I'll commit all changes to your main branch.
  6. Offline


    @Olof Larsson
    Major issue with Factions Building Restrictions....
    Your allowed to place red stone wiring in enemy territory at a door, then if you place a red stone torch even though the red stone torch is removed, the wire is powered and the door opens.
    Not sure if this is intended or not but it ruins any sort of door protection.
  7. Offline


    olat i was reading about your server
    So in order for factions to be able to claim land from another one it has to be near their own land?
  8. Offline


    If you wanna talk about my server do so on my Forums, this is not the place. If your asking about how factions works then I can explain some.

    In order for a faction to CLAIM enemy land you must do so at the BORDER of the enemies land. Olof has not yet set up limited outposts. Outposts being Allied territory NOT attached to the main land.
    So as of now You can claim ANY Non Faction zone ANY where you want to create outposts. My server in general frowns upon this as we want constant fighting on the main front.
  9. Offline


    Wasnt trying to talk about your server just wonder how factions works
    mainly the claiming from other factions
    Do you have IM or anything had issues with the Claiming from other factions
    on my server
  10. Offline


    On my server I would like to use factions to describe specific towns and areas. This way a person can belong to a specific town and towns can have wars in the future. The only problem I'm having is if I belong to Town1 and I visit a friend in Town2 I can't open his door. This is also going to have monsters so I don't want to use pressure plates in fear of monsters getting into the town walls. Is there an way to configure the file so doors, forges, and chests are accessable by people who aren't in the faction?
  11. Offline


    Don't want to use pressure plates for fear of monsters? Stick a switch next to the door instead, then.
  12. Offline


    @Olof Larsson

    do you plan on fixing the redstone thing or was this intended?
  13. Offline


    By the way, a new feature should be in the next release. As per my commit note:
    Added option ("territoryBlockCreepers") to prevent creepers from destroying blocks if they explode inside faction owned territory, which defaults to disabled; if enabled, it prevents griefing by way of luring creepers into a faction's territory.
    Note that creepers will still explode and hurt nearby players and mobs, they just won't destroy blocks.

    We had a problem on my server with one faction griefing a bunch of others while they were offline in that manner, so I decided to add this feature.
  14. Offline


    I also want to be able to use chests, forges, and dispensers as well. We occasionally use these chests as drop off points for items.
  15. Offline


    If you want it to be global, you can edit your conf.json file and modify the "territoryProtectedMaterials" section. You should be able to change this:
      "territoryProtectedMaterials": [
    to this:
      "territoryProtectedMaterials": [],
  16. Offline


    Where exactly would I find this file? My computer's search refuses to show it.

    EDIT: I found it and did as you said. There is now an error where my warp system is down and factions doesn't work...
  17. Offline


    What error are you actually seeing? I tested that and Factions loaded up without a problem. Couldn't easily test it beyond that, but if it loaded fine I wouldn't expect there to be any other problems.

    And what's this about your warp system? Unless I'm mistaken, Factions doesn't have a warp system.
  18. Offline


    when should we expect the next release?
  19. Offline


    I'm having this same issue. I can't change any of the protected materials in the config file or else the mod just flat out stops working when I start my server back up again. I have done the validator and copied over the validated text, yet it still doesn't work.
  20. Offline


    Found a bug, if you reload factions from in game the F Chat stops working. When a player types F chat it turns on then off
    if an admin does it it lets him go into F Chat no problem
  21. Offline


    I use another mod called simple warp. When I run factions without changing the conf.Json file they run together in perfect harmony. But when I do change it my warp goes down along with factions.
  22. Offline


    I really like your plugin. The problem is, it is not compatible to the plugin War (technically it is). If you dont know the plugin, check it out, its awsome (bootcamp.tommytony.com:25565).
    With this plugin you can create special arenas, where players can fight in teams, for example CTF. The problem is, that you die several times during a match, which is really bad for your Factions Power. IMO this could be prevented with just a few lines of new code.

    com / bukkit / mcteam / factions / entities / Follower.java

    public void onDeath() {
        //Only when the server doesn't run the plugin War OR the player isn'n in an warzone/arena
        if( ![pluginWarIsInstalled] || War.getPlayerTeamWarzone(playerName) == null){
    You also need to import War.java, don't know what else you need.

    war / war / src / main / java / bukkit / tommytony / war / War.java

    public Warzone getPlayerTeamWarzone(String playerName) {
        for(Warzone warzone : warzones) {
            Team team = warzone.getPlayerTeam(playerName);
            if(team != null) return warzone;
        return null;
    I don't have the know-how to do this myself (for example how to check, whether another plugin is installed), so it would be a huge favour, if you could do this.
    Thank you!
  23. Offline


    What do you mean by "stops working"? Again, is there an error message given, or what is the problem?
    I don't know what validator you're using, but out of curiosity, what text editor are you using to edit the file? Can you attach your edited conf.json file to a post here?
  24. Offline


    There is no error message for me to see. I'm using a dedicated server, so I can't directly see the console. By "Stops working" I mean the plugin literally just stops working. The Faction plugin doesn't turn on when I change anything in the config and restart my server, it just goes back to a vanilla Minecraft server with no bukkit plugins working.

    I'm using the Validator Olof linked to in the User Guide: http://www.jsonlint.com/

    It said my code or whatever was fine.

    I'm just using notepad. I'm literally just deleting "Chests" and "Furnaces" from the protected items in the config. Nothing else is changed.
  25. Offline


    I encountered an error and I'm fairly certain it's to do with Factions. Player A owns territory X. Player B who isn't in Player A's faction can't eat in territory X. Why?

    Edit: Also found out that Factions is providing block protection in areas.
  26. Offline


    Great plugin! Only problem is the annoying faction tags popping up as you enter a region that is owned by a faction. Ability to toggle messages please? Also more admin functions as well ! I can't open chests in a faction area even as an Op.
  27. Offline


    Is there a way for an admin to do anything in another factions territory?

    And i mean Admin of server, not faction. The territory still blocks admins access to chests, etc.
  28. Offline


    The line endings or spacing probably got messed up. One thing I'd recommend is to use a decent text editor which can handle different line-endings properly, like Notepad++.
  29. Offline

    james Byrne

    I'm wondering if there could be a function added that makes it so only OPs can create factions. It would be awesome if that was added =D
  30. Offline


    Support for permissions is on the ToDo list, so that would cover your request.
  31. Offline

    james Byrne

    Can we get an ETA for the permissions support?
Thread Status:
Not open for further replies.

Share This Page