[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

    Off the top of my head, the only locations it should be referencing when saving the factions data (as opposed to board and player data) would be the faction's "home" location.

    Give this interim build a shot. I haven't committed it as an official version since it just has a minor and unverified fix:
    http://wimbli.com/minecraft/factions_1.1.2b.zip

    I've modified the indicated code slightly to continue without crashing but return an empty location, so it should save successfully but potentially not save one of the faction's home locations with the data. If it runs into the same problem, you should see one of these messages in the console/log:
    Passed location is null in MyLocationTypeAdapter.
    or
    Passed location's world is null in MyLocationTypeAdapter.

    It's not critical, but for curiosity's sake I'd appreciate it if you could report back if/when you get either of those messages in your log, specifying which of the two it was. And, of course, whether it keeps the whole thing from crashing or not.

    From the code, it's trying to check if a player can be hurt in the location he's in, but somehow the referenced player is winding up returning null in the process.
    I've tested 1.1.2b briefly in 556 and attacked and took damage from a pig zombie without it spitting out any errors, and at a glance I can see no problems with the code which could cause that, so I'm at a bit of a loss.

    Can you provide any other details? Did a player log off while being attacked, possibly, or... I'm not really sure what else could cause that.

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

    Gray

    Ok installing it now. I appreciate this and will let you know.

    So far no errors, I am not expecting anything till this evening when my user count goes up. Will post as soon as I see something.

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

    xian

    thx! i'll try to fix it that way. :)
     
  5. Offline

    Lorgrim

    Grabbed this the other day and the actual plugin seems to work great! But I'm having some minor issues with permissions. Well I say minor but it simply doesn't seem to work. It's really strange, all the other mods with permissions are working as expected. And whats more according to the server log Factions is finding permissions and using it. And yet everyone has all the commands regardless of how I configure.

    I skimmed the thread looking for anyone else with the same problem and came up empty so I'm guessing its something on my side. Simple user error or maybe a compatibility problem, I don't know. Just though I would ask here and see if anyone has any ideas as to what might be causing this.

    I'm not sure what I should post to help diagnose this so any information that might help get to the bottom of this let me know.

    Thanks for your time,
    -Lorgrim
     
  6. Offline

    rendwe

    07:24:32 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'f' in plugin Factions v1.1.2
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:183)
    at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
    at com.bukkit.mcteam.factions.FPlayer.sendMessage(FPlayer.java:390)
    at com.bukkit.mcteam.factions.commands.FCommandInvite.perform(FCommandInvite.java:45)
    at com.bukkit.mcteam.factions.commands.FBaseCommand.execute(FBaseCommand.java:60)
    at com.bukkit.mcteam.factions.Factions.handleCommand(Factions.java:261)
    at com.bukkit.mcteam.factions.Factions.onCommand(Factions.java:246)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
     
  7. Offline

    rmb938

    When someone is in a faction is puts the letter f in front of the faction name and the players name.

    here is my config:

    Code:
    {
      "colorMember": "GREEN",
      "colorAlly": "LIGHT_PURPLE",
      "colorNeutral": "WHITE",
      "colorEnemy": "RED",
      "colorSystem": "YELLOW",
      "colorChrome": "GOLD",
      "colorCommand": "AQUA",
      "colorParameter": "DARK_AQUA",
      "powerPlayerMax": 10.0,
      "powerPlayerMin": -10.0,
      "powerPerMinute": 0.2,
      "powerPerDeath": 2.0,
      "prefixAdmin": "*FA*",
      "prefixMod": "*FM*",
      "factionTagLengthMin": 3,
      "factionTagLengthMax": 10,
      "factionTagForceUpperCase": false,
      "chatTagEnabled": true,
      "chatTagRelationColored": true,
      "chatTagInsertIndex": 1,
      "chatTagFormat": "%s§f ",
      "factionChatFormat": "%s§f %s",
      "allowNoSlashCommand": true,
      "autoLeaveAfterDaysOfInactivity": 14.0,
      "homesEnabled": true,
      "homesTeleportToOnDeath": true,
      "territoryShieldFactor": 0.5,
      "territoryBlockCreepers": true,
      "territoryBlockFireballs": false,
      "territoryProtectedMaterials": [
        "WOODEN_DOOR",
        "DISPENSER",
        "CHEST",
        "FURNACE"
      ],
      "territoryDenyUseageMaterials": [
        "SUGAR_CANE",
        "BUCKET",
        "FLINT_AND_STEEL",
        "BED",
        "REDSTONE",
        "SIGN",
        "DIODE",
        "WATER_BUCKET"
      ]
    }
     
  8. Offline

    Gray


    This has worked like a charm. Thanks Brett. Been reviewing some things and would have a faction with no members be the reason for the issue?
     
  9. Offline

    Jotschie

    could you add a permission that prevents factions from claiming territory?
    I don't want my factions to do that. Their territory should be defined by admins.
     
  10. Offline

    Colin Sweneey

    Hey i dont wnat to do a re-post or anything but im not going to read through 12 pages atm
    I was wondering is there a way to turn off power so land is free or give places power because im trying to get my world setup with pre determined places and then people can branch out but i have to much land to wait for 5 minutes to get 1 square
     
  11. Offline

    Brettflan

    Hmm... that might possibly explain it. I haven't looked into how the new "auto-remove-user" feature works which Olof added in 1.1, but that might possibly be the cause. I'll look into it.

    My guess is that you have another plugin which also modifies the format of chat output; Factions currently doesn't completely play nice in regards to chat formatting which might have been changed by another plugin. It can end up with chat colors leaving letters or numbers in the final string (like "f"). I've been meaning to look into that to try to come up with a better solution for it.

    I'm aware that RB 600 breaks compatibility with the current Factions release. I've been keeping the source for Factions source mostly up to date in my local copy in regards to CraftBukkit builds, with a couple of issues I still need to sort out (mainly using a bucket on water/lava in faction territory not being prevented). I plan to release an update for Factions in a few hours (or several, more likely) primarily for RB 600 compatibility.
     
  12. Offline

    xian

    thx!! omg. everything works fine now. <3 seems we have to get public with our 40-slot-pvp-rp-server on monday :D
     
  13. Offline

    Brettflan

    OK, after looking into it, here's the fix: in your config, change the value for "chatTagInsertIndex" from 1 to something higher. 2 should work, but the further you increase it, the further along it will put the faction tag.
    I ended up setting that value to 13 for myself to go along with EssentialsChat and local chat enabled, so that shouted messages have the faction tag inside the <> before the player's name, like this (YMMV):
    [Shout] <**MyFaction Brettflan> blah blah blah​
    I haven't tested it on my live server yet, but I expect that will work just fine. I hadn't realized before that a fix via configuration variable was available.


    I'll release Factions 1.1.3 shortly with RB 600/602 compatibility. By the way, if you have RB 600 already, I'd recommend downloading RB 602. There was a bug in monster classification introduced with RB 600 which they quickly fixed for RB 602.

    Download Factions 1.1.3 (for RB 600-602)

    Changelist:
    • 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

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

    xian

    could anyone write a small (out of minecraft) plugin to generate a factions.txt-file where there is just a full-ASCII-map, like its ingame? each faction could get an other letter.
     
  15. Offline

    rmb938

    It always resets it back to 1
     
  16. Offline

    Brettflan

    Shut down CraftBukkit, then edit it, then start CraftBukkit back up. If you edit it while CraftBukkit is running, it will indeed overwrite your changes when you shut CraftBukkit down.
     
  17. Offline

    ChrisB

    Would it be possible to have configurable options for safezones? I really do wish to let my "peons" build and prosper in a town that is safe from pvp and monsters :p

    But so far, faction members and regular players can't seem to build or destroy there, just open doors and use some basic functions
     
  18. Offline

    Insanehero

    Would love it if I could turn off faction home respawn according to what world your in. Also if I could turn off the f ally and f enemy according to what world your in because when we have battles in other map it won't let you hurt them. Or if you could turn off the plugin completey determing what world you want it in. I think everyone would like to see this in the plugin.
     
  19. Offline

    Graygaunt

    is there any chance of an update for cb 602?
     
  20. Offline

    Brettflan

    See this post a bit further up the page:
     
  21. Offline

    xian

    OMG please add /f a, to chat with allies instead of /f c for factions-chat. that'd be awesome and shouldnt be hard to implement.
     
  22. Offline

    rmb938

    A few suggestions. Allow a way to see if a player is admin on the server so they can view chests and stuff. iConomy integration so you need to buy land/pay to make a faction.
     
  23. Offline

    Tapdragairsoft

    This is definitely my favorite bukkit plugin besides WorldEdit and WorldGuard. Thanks for the work you've put into it. :)
     
  24. Offline

    Rareden

    can you place tnt in enemy territory and will it damage players and destroy blocks?
     
  25. Offline

    kasaikou

    Will you be updating this to support 617 bukkit servers? My players are going to miss this plugin if not.
     
  26. Offline

    ViralNihility

    It'd be great if there was an option to disable /f sethome and /f home.
     
  27. Offline

    bizzybusk

    not working with 604
     
  28. Offline

    Mr_Mellow

    Is this working on build 617?
     
  29. pls update for 1.4 thx we miss this plugin
     
  30. Offline

    tmcan8

    I don't know whether this has been implemented (i can't find anything) but I would LOVE it if you allowed factions to be granted permissions. This would allow the factions to be special and would make it more fun.
     
  31. Offline

    shadydeath999

    how about adding a bypass permissions so that admins can even build in claimed zones cus its really annoying when they ask for help with building and u cant do anything
     
Thread Status:
Not open for further replies.

Share This Page