[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

    spowney

    I get the same thing happening, I'm 100% certain the server is stopped, I edit the json in notepad++ and then start the server again. Still on 10 power no changes implemented :S
     
  3. Offline

    Brettflan

    Do you get any errors when starting up the server? If the file is messed up in any way then Factions will instead load the default configuration.

    EDIT: by the way, I'm running Factions 1.1.6 in CraftBukkit 714 with no apparent problems.
     
  4. Offline

    darkwarriors

    no chance to see an update with some small users request?
     
  5. Offline

    CHIKINS!!!

    This is what it says when I start up meh server
    Code:
    [SEVERE] Could not load 'plugins/Factions.jar' in folder 'plugins':
    java.lang.NoSuchMethodException: com.bukkit.mcteam.factions.Factions.<init>()
        at java.lang.Class.getConstructor0(Class.java:2706)
        at java.lang.Class.getConstructor(Class.java:1657)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:160)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:108)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    I used every single version, used the jar.file any way I could, upgraded CB, and tried everything I could think of.
    Can you help me? I tried the server u go 2 (mcTeam.net) and couldn't find you, and I need your help, plz:rolleyes:?
    If you think it'll help here's my ip: 173.74.157.205:25565 if that doesn't work then try 192.168.1.14:25565 thnx.:D

    This is what it says when I start up meh server

    Code:
    [SEVERE] Could not load 'plugins/Factions.jar' in folder 'plugins':
    java.lang.NoSuchMethodException: com.bukkit.mcteam.factions.Factions.<init>()
        at java.lang.Class.getConstructor0(Class.java:2706)
        at java.lang.Class.getConstructor(Class.java:1657)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:160)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:108)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    I used every single version, used the jar.file any way I could, upgraded CB, and tried everything I could think of.
    Can you help me? I tried the server u go 2 (mcTeam.net) and couldn't find you, and I need your help, plz:rolleyes:?
    If you think it'll help here's my ip: 173.74.157.205:25565 if that doesn't work then try 192.168.1.14:25565 thnx.:D

    And btw u didn't say Olof I need your help sorry the only way to get to u.:cool:

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

    Zalastri

    Anybody know if there's an easy way to convert from towny to factions? I have a lot of people with a lot of claimed land and no other grief protection, and I'd really like to switch.
     
  7. Offline

    Senzuri

    Feature Suggestion:

    Have a permission which grants access to the following:
    /f admin claim
    /f admin tag
    /f admin desc

    This admin group has unlimited claims + power, this could work along side the /f safe command.

    The reason it's needed is because I want to protect some areas, but don't want them as safe zones because people just end up camping them, and it becomes a problem. (PvP Server).
     
  8. Offline

    Brettflan

    Are you sure you have a JAR file and not the ZIP file which contains it or something like that? I'd say to redownload it, but you say you've tried that. However, a valid, non-corrupted copy of Factions (or any other Bukkit plugin) shouldn't give that error.

    EDIT: by the way, lately I've been rather busy with all sorts of other stuff such as keeping the bills paid, so I haven't had time to give much attention to Factions other than to be sure it continues to work. Olof also appears to be very busy lately. So... this plugin will definitely be updated as needed to be compatible with the latest Recommended Builds along with any necessary bugfixes, but I really don't know when I'll have time to even consider feature requests for it.
     
  9. Offline

    Alexx914

    is good but it's a shame we can not talk to each faction allies /
     
  10. Offline

    CHIKINS!!!

    When I opened the zip and went inside the file and got factions 1.1.6 there would be no jar. file so I went back to Beta 1.4 and found a jar, so I used that and the error pooped up, so can you just make a jar. download? And do I JUST put the jar. in the plugins folder or put the jar file AND the factions file in it. (I use a Mac OS X)
     
  11. Offline

    Lookatmego

    if i claim a land will it be protected from bedrock to sky or no?

    guys when ever i edit the config for this and save and reload server it all goes to wat it was before help??!??!

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

    freeflo

    I'm having a similar issue with the conf.json. When I do server maintainance(Stop Server) and reconfig files, clear obsolete ones, and update others. I always try to eliminate power from all players. AKA, delete players.json and edit the conf.json so that max, default, gain, loss of power is all set to 0. Is this just not possible? I hate that they can claim land.
     
  13. Offline

    Brettflan

    So this download link should give you a ZIP file. What do you see inside when you open it?
    https://github.com/oloflarsson/Factions/raw/master/releases/factions 1.1.6.zip

    1. If you edit the file while the server is running, your changes will be overwritten when you stop the server. Only edit it while the server is shut down.
    2. If the changes you made were problematic in some way (corrupted the file, added an invalid color name, etc.), you will see a Factions error in the server log/console when you start the server up indicating as much. Factions will then revert back to default configuration values.
    Your problem should be one of the above.
     
  14. Offline

    Lookatmego

    i got this working but i got some problems and also some ideas..

    problems are this messes with ichat and others so my prefixes i got for players dont work they are just white...and their color code is there so like 9<Guardian>.

    My idea also was that have a command like /f color [color]
    which would change the color of your team/faction so if you put blue it would have blue for the titles for ur players...

    thanks
     
  15. Offline

    Brettflan

    Try playing around with increasing the "chatTagInsertIndex" value in the conf.json file (editing it with the server stopped, of course). That value controls where in the chat string it inserts the user's appropriately colored faction name.
     
  16. Offline

    Lookatmego

    hmm i still dont get it here is my config..

    {
    "colorMember": "GREEN",
    "colorAlly": "LIGHT_PURPLE",
    "colorNeutral": "WHITE",
    "colorEnemy": "RED",
    "colorSystem": "YELLOW",
    "colorChrome": "GOLD",
    "colorCommand": "AQUA",
    "colorParameter": "DARK_AQUA",
    "powerPlayerMax": 20.0,
    "powerPlayerMin": -10.0,
    "powerPerMinute": 2.0,
    "powerPerDeath": 1.0,
    "prefixAdmin": "**",
    "prefixMod": "*",
    "factionTagLengthMin": 3,
    "factionTagLengthMax": 10,
    "factionTagForceUpperCase": false,
    "chatTagEnabled": true,
    "chatTagRelationColored": true,
    "chatTagInsertIndex": 1,
    "chatTagFormat": "\u003c%s\u003e",
    "factionChatFormat": "\u003c%s\u003e",
    "allowNoSlashCommand": true,
    "autoLeaveAfterDaysOfInactivity": 14.0,
    "homesEnabled": false,
    "homesTeleportToOnDeath": true,
    "territoryShieldFactor": 0.5,
    "territoryBlockCreepers": false,
    "territoryBlockFireballs": false,
    "territoryBlockTNT": false,
    "safeZoneDenyBuild": true,
    "safeZoneDenyUseage": true,
    "safeZoneBlockTNT": true,
    "territoryProtectedMaterials": [
    "CHEST",
    "WOODEN_DOOR",
    "DISPENSER",
    "FURNACE"
    ],
    "territoryDenyUseageMaterials": [
    "FLINT_AND_STEEL",
    "LAVA_BUCKET",
    "WATER_BUCKET",
    "BUCKET"
    ]



    what do i change????and by how much?
     
  17. Offline

    Brettflan

    As I just said, the "chatTagInsertIndex" value. Change it to 2, then test it out. Then you might try 3, and so on.
     
  18. Offline

    CHIKINS!!!

  19. Offline

    Brettflan

    Those are the contents of the JAR file. I'm not sure why that file by itself (unmodified) would give you the error you were getting when trying to load it in CraftBukkit.

    Try this download link:
    https://github.com/downloads/oloflarsson/Factions/factions 1.1.6.zip
     
  20. Offline

    7007King0770

    I need help here, what are the nodes? I know there is - 'factions.participate*'
    - 'factions.create*'
    But how do I make it so people can do other things? I want to give people access to other abilities without giving them full accesses.
    Like no opening other peoples doors and chests, but yes allying with other factions and etc.
    Permissions does not let admins ally other factions/go to war with them, set faction homes, or go to faction homes.
    Before I had permissions this was no problem, but I need permissions now and I am confused on how to set up the factions as I do not know it's nodes.
     
  21. Offline

    Senzuri

    I'm getting these errors in console:

    Code:
    [SEVERE] Could not pass event ENTITY_DAMAGE to Factions
    java.lang.NullPointerException
            at org.mcteam.factions.FLocation.<init>(FLocation.java:34)
            at org.mcteam.factions.FLocation.<init>(FLocation.java:38)
            at org.mcteam.factions.listeners.FactionsEntityListener.canDamagerHurtDamagee(FactionsEntityListener.java:106)
            at org.mcteam.factions.listeners.FactionsEntityListener.onEntityDamage(FactionsEntityListener.java:56)
            at org.bukkit.plugin.java.JavaPluginLoader$42.execute(JavaPluginLoader.java:458)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
            at net.minecraft.server.EntityHuman.d(EntityHuman.java:505)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:763)
            at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    
    It relates to players hitting NPCs. It can be fixed with the following:

    "If you need to check whether an Entity is an NPC or not, there is a method in the NPCManager if you wish to do so called isNPC() - returns a boolean value whether it is or not. First, check whether Citizens is enabled. Then, import the static class NPCManager, and use its methods directly."

    Taken from: http://forums.bukkit.org/threads/me...t-traders-guards-quests-coming-soon-677.7173/

    Hope you can fix soon, these errors are really annoying when people decide to hit them over and over.
     
  22. Offline

    CHIKINS!!!

  23. Offline

    Brettflan

    I'll look into it.

    And have you tested that file to see if it loads in CraftBukkit?
     
  24. Offline

    7007King0770

    So besides the 3 nodes on your website are there any others? Any that allow for more freedom? Currently with permissions faction leaders can not go to war or alley with each other, and /f sethome and /f home do not work for all members. Please are there any other nodes? Is it possible you could make more if there are not? OR is there a way to get permissions to AVOID/IGNORE factions plugin although and just let it be default set up? The default set up works great for my server.
     
  25. Offline

    Brettflan

    Besides those 3, there's only one other: "factions.adminBypass", which allows a person to use the /f bypass command.

    The default setup would be such that normal players have "factions.participate" and "factions.create" permissions, and Ops additionally have the other two.
    I'm pretty sure only faction admins and moderators can use /f sethome.
    I'm not sure what problem you could be having that would prevent faction leaders from changing relations with other factions, that shouldn't be affected by the Permissions tie-in.
     
  26. Offline

    ScottCameron

    Is this ever going to be updated so Administrators have more control?
     
  27. Offline

    Specops343

    I was just wondering, is there a way to disable land claiming? My other admin doesnt like the ability to have protected land, but i still would like factions and am looking for a compromise.
     
  28. Offline

    7007King0770

    The problem I am having is faction admins can not sethomes, or change relations to other factions. And regular members of it can not type /f home. These are my problems, what are some likely causes if you have any, and do I need to show you my setup? Etc, Etc, the usual I need help what I can do to fix problem.
     
  29. Offline

    Lookatmego

    i changed the index of tag and everything AND it works awesome now just 1 problem when ever we use any command that has soemkthing to do with factions it works fine just it says this error in console

    23:40:38 [SEVERE] Could not pass event PLAYER_CHAT to Factions
    java.util.UnknownFormatConversionException: Conversion = '?'
    at java.util.Formatter.checkText(Formatter.java:2503)
    at java.util.Formatter.parse(Formatter.java:2485)
    at java.util.Formatter.format(Formatter.java:2414)
    at java.util.Formatter.format(Formatter.java:2367)
    at java.lang.String.format(String.java:2769)
    at com.bukkit.mcteam.factions.listeners.FactionsPlayerListener.onPlayerChat(FactionsPlayerListener.java:83)
    at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:234)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:619)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:607)
    at net.minecraft.server.Packet3Chat.a(SourceFile:36)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:73)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)

    ah another problem..when we do /f chat

    the text is invisible

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

    CHIKINS!!!

    How do I? I don't know how to put a bukkit plugin in without a jar. file
     
  31. Offline

    7007King0770

    Problem fixed, Now I have a question. Your plugin works great for 1.5 but with only 1 problem, the /f map on is broken, if you fixed that your plugin would be 100% ready for 1.5! Just telling ya that if ya didn't know.
     
Thread Status:
Not open for further replies.

Share This Page