[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:
    http://help.github.com/fork-a-repo/
    http://help.github.com/pull-requests/

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

    Usage
    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
    Installing
    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.
    Changelog:
    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

    Brettflan

    It's very particular about layout and spacing. So:

    Code:
            permissions:
                - 'foo.bar'
                - 'factions.participate'
                - 'factions.create'
    and:
    Code:
            permissions:
                - '*'
                - 'factions.manageSafeZone'
    EDIT: though actually, '*' covers all permissions for everything, so there's really no need to add any further permissions beyond that for the Admins group.
     
  3. Offline

    Vengurd

    Thank you for the fast reply! I would like to say your help made it all better yet when I restart the server it continues to say the permissions is not detected.

    Is there anything further I may have messed up? I put the factions.jar in the plugins folder (I made sure I had the most recent copy soon as I saw that you updated, I nabbed it just before you posted on here it looks like) where it said I should. Uhm, the plugin works fine so I doubt its something clashing. I know it is something on my end, not yours, I just wouldn't know what.
     
  4. Offline

    Brettflan

    That's indicating it ran into the problem which was previously crashing Factions, which is still a problem. It's just one that Factions can now ignore by clearing out the problem location.

    @Vengurd: sorry, but I don't have time to help you further. Maybe someone else can. The Permissions topic really would be the best place to go for help, though, along with doing some reading of the first post over there which should better explain how Permissions works.

    Just a reminder, there is still a remaining issue: whichever factions had problem home locations (I expect it's home locations in unloaded worlds) will have to set their home location again. It's something which I'll need to look further into at a later date for a proper fix.

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

    Vengurd

    Thanks for the help anyway, so far nothing in the permissions topic is really being helpful, so I'm at a loss for what to do other than putting any further use for this plugin on hold until I can get clear instructions. Thank you for your time.
     
  6. Offline

    KinaNeko

    It seems like the plugin works fine, .....all except for the fact that nothing will save at all. To test this I ran a server using ONLY permissions 2.5.5, Bukkit 617, and Factions on DEFAULT settings. I set up a faction and claimed land and safe zones and then saved the server and quit and every time I've tried, the factions and claimed land has never been retained upon opening the server again though as long as the server is not restarted the plugin runs fine otherwise everything will be gone when you restart the server.
     
  7. Offline

    xian

    yes! thats exactly why i am here in the thread... everything is ok until we restart the server..

    i am not sure, but there is GRAY and GREY, for american and british language. maybe thats the problem?
     
  8. Offline

    Hansel2411

    I'm experiencing the same with default configs, Factions v1.1.5 (I also tested 1.1.5b) and CB617. :(
     
  9. Offline

    T4L_Goose

    People seem to be able to stack their way up and over walls in other people's territory if they keep placing blocks while looking at their feet. It doesn't seem to get rid of the blocks fast enough.

    Is it possible this will be fixed?
     
  10. Offline

    lennie svensson

    wene i use - 'factions.participate' everyone can join my "klan" no need of an invite? if i dont use - 'factions.participate' in permisson and i invite to my "klan" and the player write /f join "klan" it says you dont have permisson. so i need - 'factions.participate' to have anyone able to join? and wene i use it they can join even if they aint invited? ty for help
     
  11. Offline

    Duendek86

    You have to give 'factions.participate' permission to all players. After that, if you have created a faction and you want to accept only players that you invite, you have to make your factions closed, write (/f close), after that, only invited players will be able to join your faction.
     
  12. Offline

    lennie svensson

    lovley :D thx alot m8 <3
     
  13. Offline

    vander_fr

    Nice plugin !

    But it's need to zip multiworld too, not only the main world.
    It's create a zip file of my multiworld map, but it's size is 0KB :confused:
     
  14. Offline

    Axrael999

    Perhaps you could deny people from placing vehicles in other factions land. There are some exploits that I'd rather not discuss in public of how to bypass entry points.
     
  15. Offline

    Amrac

    Thank you for your mod :)
     
  16. Offline

    Cristof

    Hi !
    There is a little bug:
    When i die and i respawn in faction's home i see a big empty hole!
     
  17. Offline

    deathclawkitty

    I registered to make this post because I appreciate this mod so much.
    I'm having a problem with the territory protection. It doesn't seem to be working for me and I'm a little frustrated. I have tried Factions v1.1.5b on both "craftbukkit-0.0.1-SNAPSHOT.jar" and on "craftbukkit-b617.jar" but neither one seemed to allow it to work.
     
  18. Offline

    Olof Larsson

  19. Offline

    deathclawkitty

    Actually. This is a part of admin bypass. Is there a way I can toggle this off? I like to be as one of the players and play fairly. I don't want to be able to bypass other faction territory.
     
  20. Offline

    Olof Larsson

    However the downside would be that if the world did not exist... it would be created. That is a problem. Perhaps worth it though in the meantime while waiting for the CB update.
     
  21. Offline

    deathclawkitty

    Nevermind. I'm editing the value on my own :p
     
  22. Offline

    Brettflan

    Yeah, that could explain it. I'd found that it was due to the referenced world being null, but I didn't know the particulars.
    My current workaround solution is to simply return a null location (and therefore drop it) if it hits an NPE during the process of getting the location. That ends up losing faction homes in worlds other than the main one, so it could definitely do with a better solution in the long run barring a CraftBukkit fix to handle the underlying problem.

    On the other issues some people are having with plugin data not being saved properly for whatever reason, I don't have time to look at it right now. I'll check back into it when I get a chance, but my last test with 1.1.5b didn't turn up any problems.
    For those who are having that sort of problem, the more info you can provide, the better. Details. If we have nothing but "it's not saving" or similar to go on, that makes it all the harder to reproduce for us.
     
  23. Offline

    Dylan Helling

    Hey thankyou for this plugin, it adds the perfect pvp and ally relationship. I have come into a few problem that I dont know how to address. I have ideas of have mini games within the server, but if the factions dies they lose power. But I want the death power loss to be on if they didnt participate in the server. I am not for sure how to address this situation, if you could help me I would really appreciate it! Thanks
     
  24. Offline

    xian

    any help? :<
     
  25. Offline

    Hansel2411

    Hey Brettflan. Thanks a lot. :)

    It's hard to give you more details - as factions is not creating any error messages in the server console. Everything works perfectly fine: Ingame commands, door / chest / dispenser / creeeper protection, etc. But as soon as the server is stopped and started again, everything is resetted to how it was before we updated to 1.1.5 / CB 617.

    This is a list of plugins we are using:

    - GroupManager
    - WorldGuard
    - WorldEdit
    - Factions
    - Whitelist
    - HeroicDeath
    - Essentials
    - BorderGuard Lite (Round)
    - DropBlocks
    - Waypoints
    - iConomy
    - CommandSigns
    - CommandIConomy
    - Citizens

    Same problem appeared with 1.1.5b, though we moved back to 1.1.5 because we are still using CB617 and thought that the newest faction version may not be compatible with 617.

    If there is any additional info I can provide to help you guys, let me know. We're also willing to do some testing on our server, as it is not public as long as factions isn't working properly. So if you have a dev build needed to be tested, contact me. :)

    Thanks a lot for all your efforts. We really love the plugin and appreciate all your work. :)
     
  26. Offline

    Brettflan

    Download Factions 1.1.6 [617]

    Changelog:
    • Loading and saving data should catch all errors now, and at least hopefully not wipe out unrelated plugin data (i.e. failure in saving/loading config data shouldn't kill factions/players/board info)
    • Changed AdminBypass permission to enable new "bypass" command which toggles admin bypass mode on or off, defaults to off; this way it isn't forced on Ops/Admins
    I looked at having it try to load/create any worlds which are returned as null by CraftBukkit, but since the createWorld() function requires defining the environment for the world (normal or nether), it seems there's no way to guess which one the world was without storing that information as well. Seems like too much trouble to work around the CraftBukkit bug/shortcoming in that way, which could inadvertently create a world that you deleted and don't want back. Better to just wait for them to fix it, and make sure the result of this CraftBukkit problem is known to everyone:
    Faction homes set in worlds other than the first one (normally "world") will likely be lost when you shutdown and restart your server.

    Without further information, and with us being unable to duplicate your problem, it's a bit tough to try to guess what might be causing it. Try 1.1.6, and let us know of any errors which show up in your server log if the problem continues.
    Also, these files should have been created in the /plugins/Factions/ folder: board.json, conf.json, factions.json, players.json. Are those files there and do they contain any data?

    EDIT: @Hansel2411 like xian, please try 1.1.6 and report back if you still have a problem. Please include the sections of your server log which pertain to Factions loading.
    Also, just to toot my own horn a bit, you might give my WorldBorder plugin a try in place of BorderGuard Lite. ;)
     
  27. Offline

    Hansel2411

    Thanks, Brettflan. We'll test 1.1.6 asap. And yes, those files are there and they do contain the data that existed before update to v.1.1.5b (several factions, claimed territory, etc).

    I just tested 1.1.6 and it is still not saving the data properly. :( There is no error message, so I have no idea what details we can provide you.

    This is an extract of our server log:

    > 12:40:12 [INFO] [Factions v1.1.6] === INIT DONE (Took 100ms) ===
    > 12:40:12 [INFO] [Factions v1.1.6] Found and will use plugin Permissions v2.5.1
    > 12:40:12 [INFO] [Factions v1.1.6] Loading board from disk
    > 12:40:12 [INFO] [Factions v1.1.6] Loading factions from disk
    > 12:40:12 [INFO] [Factions v1.1.6] Loading players from disk
    > 12:40:12 [INFO] [Factions v1.1.6] Loading conf from disk
    > 12:40:12 [INFO] [Factions v1.1.6] === INIT START ===

    Edit: WorldBorder looks nice. We'll look into that later. :)

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

    firehead07


    is there a way to link this with permissions so only certain people can make an alliance?​
     
  29. Offline

    Hansel2411

    From mcteam.org's Userguide on Factions:
    Permissions Plugin Support

    This plugin has support for the permissions plugin. It will work very well without it thoug. These are the permission nodes:
    • factions.participate join factions etc (add this to the deafult group)
    • factions.create create new factions (add to default or possibly admins)
    • factions.manageSafeZone claim and build in safe zone (add to admins)
     
    firehead07 likes this.
  30. Offline

    Brettflan

    That's odd. It's outputting the data in that order? It should be in the exact opposite order, like so:
    Code:
    06:15:29 [INFO] [Factions v1.1.6] === INIT START ===
    06:15:29 [INFO] [Factions v1.1.6] Loading conf from disk
    06:15:29 [INFO] [Factions v1.1.6] Loading players from disk
    06:15:29 [INFO] [Factions v1.1.6] Loading factions from disk
    06:15:29 [INFO] [Factions v1.1.6] Loading board from disk
    06:15:29 [INFO] [Factions v1.1.6] Found and will use plugin Permissions v2.5.1
    06:15:29 [INFO] [Factions v1.1.6] === INIT DONE (Took 106ms) ===
    And yeah, just based on the fact it's not indicating any errors, it should have properly loaded your data.
    If you use the command /f list, does it list any factions?
    Also, could you zip up and upload the 4 *.json files somewhere (your server, Mediafire, whatever) and give me the link so I can try using them?
     
  31. Offline

    Hansel2411

    Sorry, of course it's displayed the way you posted in our server.log.

    Here are our *.json files: <Edit by Moderator: Redacted mediafire url>
    /f list works fine and displays all the factions mentioned in those .json's.

    And yeah, it does load the data properly, but it doesn't save it properly. As soon as we restart the server, everything's resetted to what it was before we updated to v1.1.5/1.1.5b/1.1.6

    Alright, Brettflan. We were able to locate the problem a bit better. Factions data is not saved properly if we stop & start the server, but it is saved properly after a specific amount of time. Is there any time intervall for data saving in factions? How long is it?

    So what we did for testing is:

    - I left my faction and created a new one. I restarted the server and was back in my old faction.
    - I left my faction and created a new one. Then I waited with restarting for about an hour. I was still in the new faction after server restart.

    Does this help you?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Dec 15, 2016
Thread Status:
Not open for further replies.

Share This Page