[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

    yaitsbilly

    I have a few request that I would like to see.

    1. When I type /f list ingame,because of the minecrft chat only showing the last 20 line,I cant see all the factions. So I would like to see pages and each pages only show 10 per page and in alphabetical order. Ex: /f list 1,2,3

    2. On server side I noticed the the factions are save on the order they are made,Ex: 1.json , 2.json, I would like to save as the name as the faction. In case I have to delete that faction.

    3. More/Better admin commands,Not admin of the faction but admin of the server, I would like to see admin haveing the ability the unclaim land and delete factions ingame.

    4. A commands to see what your power is. Many people ask me this.
     
  3. Offline

    Brettflan

    Factions 1.0beta5 doesn't work on the latest dev builds of CraftBukkit, and thus the upcoming next release build. This is due to PLAYER_COMMAND no longer being supported, which should be replaceable with PLAYER_COMMAND_PREPROCESS.

    EDIT: disregard most of my post's former contents. I thought my problems were due to my custom updated build of Factions, since Factions was failing to load with a strange error:
    Code:
    java.lang.IllegalAccessError: tried to access field  com.google.gson.Gson.DEFAULT_ANON_LOCAL_CLASS_EXCLUSION_STRATEGY from  class com.google.gson.GsonBuilder
            at com.google.gson.GsonBuilder.<init>(GsonBuilder.java:93)
            at com.bukkit.mcteam.factions.entities.EM.<clinit>(EM.java:34)
            at com.bukkit.mcteam.factions.Factions.onEnable(Factions.java:34)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:117)
    <snip>
    However, it appears to be a conflict between it and a custom updated build of WorldGuard I made which also uses GSON.
    Hmm. I should be able to figure out a workaround.
     
  4. Offline

    zehkaiser

    Let me start by saying my server LOVES this mod! Just a few things that I've found would be helpful.

    1. You can't damage someone in their territory. Please fix this!
    2. Can we get a config reload option? I've adjusted config stuff like power and things, and it won't update. Last time I broke my board and everyone had to reclaim. :'(
    3. Allow a whitelist for buildable items in ENEMY territory. I'd like to TNT the hell out of an enemy faction. :)
    4. Allow allies to build in each other's territory? Config option.
    5. We desperately need admin controls! Once a faction claims an area I'm helpless to do anything. This includes unclaiming the land and disbanding factions that just up and quit...
     
  5. Offline

    kazeen

    Yea we need admin controls badly
    People steal from others and make a faction claim land so that others cant get revenge on them
    Have to restart the server in order to delete the faction need to be able to this ingame
     
  6. Offline

    Olat

    Factions needs to work better with CRAFTIRC. It does work now but it also relays the Faction ONLY chat to IRC so any one on IRC can see the private messages of each faction. Is there a way to just RELAY the global chat ? If so we could use Factions and CraftIRC which would be amazing.

    I also agree with more configurable options. Allies build in Territory. Able to delete factions, Ability to change power per player IN game would be amazing. All of theese things would make factions even more enjoyable.
     
  7. Offline

    Gray

    Love this mod, would love to see the safe zone's added, currently using admin chars land to claim the whole spawn area to keep it somewhat safe. Would also like to be able to delete factions and change power from in game.

    Keep up the good work!
     
  8. Offline

    zehkaiser

    Any chance of an update..?
     
  9. Offline

    Alienware777

  10. Offline

    T4L_Goose

    Please please PLEASE fix this. I really love this plugin, but the fact that none of the faction protection features work is a real bummer and cripples the fun of the mod. I really hope you're still working on this mod and you haven't just abandoned it. This is the first Bukkit Plugin I've ever used, and I love it, I just wish it would work 100%.
     
  11. Offline

    Olat

    Code:
    [SEVERE] Could not load plugins/Factions.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:80)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:129)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:94)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoSuchMethodException: com.bukkit.mcteam.factions.Factions.<init>()
            at java.lang.Class.getConstructor0(Class.java:2723)
            at java.lang.Class.getConstructor(Class.java:1674)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:75)
    
    New Recommended build for Bukkit, causes this plugin not to load. any ETA?
     
  12. Offline

    Brettflan

  13. Offline

    Goddo

    nice work man will check it out

    working, thanks should help a lot in the mean time :D
     
  14. Offline

    Olof Larsson

    Awesome :)
    However please fork me on github and do a pull request :) That way we can code on the plugin together and you may do a official release.
    --- merged: Mar 4, 2011 9:35 AM ---
    I have taken a short break from coding on this plugin. HOWEVER please fork me and do pull requests. That way we can keep this plugin up to date together :)

    Right now I am developing a new plugin "Vampire". It will be awesome and I'm sure I'll learn a lot of new things I can use in Factions later.
     
  15. Offline

    kazeen

    thx for the update
     
  16. Offline

    Brettflan

    Sure thing, I was actually planning to do that later today.
    --- merged: Mar 4, 2011 5:07 PM ---
    Pull request sent. Read the included message and let me know if you want that final commit.
     
  17. Offline

    kazeen

    Yay someone is picking this up thx!!
     
  18. What do you two use to edit the files, I uploaded it with eclipse but couldn't find any way to run it... or documentation on what did what... exactly... as i would love to help code it :D
     
  19. Offline

    Brettflan

    I just created a new NetBeans project using those source files, myself. I tried using Eclipse briefly for something else and quickly decided that it wasn't for me. [​IMG]
     
  20. Offline

    zehkaiser

    Is there a chance the next update will allow you to take damage in your own territory? I have a faction that is causing hell for everyone and they can't do anything about it...

    EDIT: Oh, and admin commands to disband or remove land factions have claimed.
     
  21. Offline

    Olof Larsson

    @Brettflan Awesome! :) I merged all your changes and added you as collaborator. I'd be glad if you code on the main repo instead of your fork from now on :) That way you don't need to request pulls anymore.
     
  22. Offline

    Olat

    @Olof Larsson
    @Brettflan

    Code:
    2011-03-05 10:41:49 [SEVERE] java.lang.NumberFormatException: For input string: "world"
    2011-03-05 10:41:49 [SEVERE]    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    2011-03-05 10:41:49 [SEVERE]    at java.lang.Long.parseLong(Long.java:438)
    2011-03-05 10:41:49 [SEVERE]    at java.lang.Long.parseLong(Long.java:478)
    2011-03-05 10:41:49 [SEVERE]    at com.bukkit.mcteam.factions.entities.EM.boardLoadAll(EM.java:142)
    2011-03-05 10:41:49 [SEVERE]    at com.bukkit.mcteam.factions.entities.EM.loadAll(EM.java:46)
    2011-03-05 10:41:49 [SEVERE]    at com.bukkit.mcteam.factions.Factions.onEnable(Factions.java:34)
    2011-03-05 10:41:49 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
    2011-03-05 10:41:49 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)
    2011-03-05 10:41:49 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
    2011-03-05 10:41:49 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:79)
    2011-03-05 10:41:49 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:60)
    2011-03-05 10:41:49 [SEVERE]    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
    2011-03-05 10:41:49 [SEVERE]    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
    2011-03-05 10:41:49 [SEVERE]    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
    2011-03-05 10:41:49 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
    2011-03-05 10:41:49 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-05 10:41:49 [INFO] Factions warn:   failed to load board world
    
    CB 493
    The Unoffcial Factions beta5.1

    My entire board fails to load. I can reclaim territory but I get this Error every time I start yp my server....
    So I dunno what to do to get it working...
     
  23. Offline

    Olof Larsson

    This is because there exist different types of the faction plugin since the essentials team adopted it :p
    I use world id for the name of the world board file. The essentials team changed that to world name...
    I'll do as the essentials team. With the next release it should work for you again.
     
  24. Offline

    Olat

    @Olof Larsson
    Is there a quick fix i can do now? So my players can PVP again?
    I just turned on Chest Looting in enemy territory to make Raiding Cities more profitable but now with EVERYTHING being No Faction.. Chaos will ensue so im enforcing Martial Law / No PVP until this gets fixed..
    Anything I can do to change it back ? Or what?

    Toss me a quick fix, and Ill toss you some donations. My server has its monthly fees paid for. and I am more then willing to support plugin Dev's that help me out.
     
  25. Offline

    Olof Larsson

    The quick fix would be to find the world id for your world named "world" (the default one).
    However I don't know where to find it. You could code a plugin and pick it out :p

    Code:
    World.getId()
     
  26. Offline

    Olat

    @Olof Larsson
    No idea how to code a quick plugin,
    im only using 1 world.
     
  27. Offline

    Olof Larsson

    Ok. Just wait for a little while. I'll release beta6 soon. Like within 2h. :)
     
  28. Offline

    Olat

    Ok cool. Thanks for the quick replies. You got a donate link in the OP.
    Love this plugin and was sad when you went MIA.
     
  29. Offline

    Olof Larsson

    :) What does OP stand for? I hope it was a question because I am not aware of any donation link. There is not supposed to be any donation link. I wan't to code on this project together with other people and to take donations then would look ugly :D
    --- merged: Mar 5, 2011 10:55 AM ---
    I just released version beta6 thanks to @Brettflan :)
     
  30. Offline

    Olat

    OP = Original Post. and nah most plugin developers accept donations.
     
  31. Offline

    kazeen

    thanks again to you guys for keeping this alive
    much appreciated
    --- merged: Mar 5, 2011 5:12 PM ---
    So what are plans for factions now
    we will be able to claim others land
    we factions actually be able to have wars
    atm when their enemies they cant hurt each other on their lands
    Its killing the purpose of being enemies
     
Thread Status:
Not open for further replies.

Share This Page