[SEC/FUN] Factions 2.0.0 - Guilds, War and user-controlled antigrief [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by MassiveCraft, May 29, 2011.

  1. Offline

    Deathfromace

    You can set a time limit on when members must log-in server. If they don't log-in during this time they are kicked out of guild until all members are gone and guild is disbanded. I set my time to 8 days.
     
  2. Offline

    EssentialsTeam

    Add "softdepend: [Essentials]" to plugin.yml, otherwise this will happen sometimes:

    Code:
    2011-06-21 19:35:34 [SEVERE] Error occurred (in the plugin loader) while enabling Essentials v2.3.3 (Is it up to date?): null
    java.util.ConcurrentModificationException
        at java.util.TreeMap$PrivateEntryIterator.nextEntry(Unknown Source)
        at java.util.TreeMap$KeyIterator.next(Unknown Source)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:308)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:806)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.mcteam.factions.Factions.preloadPlugin(Factions.java:193)
        at org.mcteam.factions.Factions.onEnable(Factions.java:123)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:799)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  3. Offline

    rubytap

    Can anyone help me? Everytime I try to change the config to allow wooden doors and chests to be used (make them not protected), it goes back and resets it back to how it was (protected).
     
  4. Offline

    40540057

    Please help ASAP! Edited the file as per your instructions with the lock/unlock. Trying to setup my custom war, any instructions on removing ALL effects on chat would be appreciated, I already setup everything in iChat but it's messed up by Faction default settings.

    thanks!

    This is my file:


    {
    "colorMember": "",
    "colorAlly": "",
    "colorNeutral": "",
    "colorEnemy": "",
    "colorSystem": "",
    "colorChrome": "",
    "colorCommand": "",
    "colorParameter": "",
    "powerPlayerMax": 10.0,
    "powerPlayerMin": -10.0,
    "powerPerMinute": 0.2,
    "powerPerDeath": 4.0,
    "powerRegenOffline": false,
    "prefixAdmin": "",
    "prefixMod": "",
    "factionTagLengthMin": 3,
    "factionTagLengthMax": 10,
    "factionTagForceUpperCase": true,
    "newFactionsDefaultOpen": false,
    "showMapFactionKey": true,
    "CanLeaveWithNegativePower": false,
    "preloadChatPlugins": true,
    "chatTagEnabled": false,
    "chatTagRelationColored": false,
    "chatTagReplaceString": "",
    "chatTagInsertAfterString": "",
    "chatTagInsertBeforeString": "",
    "chatTagInsertIndex": 1,
    "chatTagPadBefore": false,
    "chatTagPadAfter": false,
    "chatTagFormat": "",
    "factionChatFormat": "",
    "allowNoSlashCommand": true,
    "autoLeaveAfterDaysOfInactivity": 14.0,
    "homesEnabled": true,
    "homesMustBeInClaimedTerritory": true,
    "homesTeleportToOnDeath": true,
    "homesTeleportAllowedFromEnemyTerritory": false,
    "homesTeleportAllowedEnemyDistance": 32.0,
    "disablePVPForFactionlessPlayers": true,
    "claimsMustBeConnected": true,
    "considerFactionsReallyOfflineAfterXMinutes": 0.0,
    "territoryShieldFactor": 0.1,
    "territoryDenyBuild": false,
    "territoryDenyBuildWhenOffline": true,
    "territoryDenyUseage": false,
    "territoryBlockCreepers": true,
    "territoryBlockCreepersWhenOffline": true,
    "territoryBlockFireballs": true,
    "territoryBlockFireballsWhenOffline": true,
    "territoryBlockTNT": true,
    "territoryBlockTNTWhenOffline": true,
    "safeZoneDenyBuild": true,
    "safeZoneDenyUseage": true,
    "safeZoneBlockTNT": true,
    "warZoneDenyBuild": false,
    "warZoneDenyUseage": false,
    "warZoneBlockCreepers": true,
    "warZoneBlockFireballs": true,
    "warZoneBlockTNT": true,
    "warZonePowerLoss": true,
    "warZoneFriendlyFire": false,
    "wildernessDenyBuild": true,
    "wildernessDenyUseage": true,
    "wildernessBlockCreepers": true,
    "wildernessBlockFireballs": true,
    "wildernessBlockTNT": true,
    "wildernessPowerLoss": true,
    "territoryProtectedMaterials": [],
    "territoryDenyUseageMaterials": [
    "FLINT_AND_STEEL",
    "BUCKET",
    "WATER_BUCKET",
    "LAVA_BUCKET"
    ],
    "territoryProtectedMaterialsWhenOffline": [
    "DISPENSER",
    "CHEST",
    "FURNACE",
    "WOODEN_DOOR",
    "TRAP_DOOR"
    ],
    "territoryDenyUseageMaterialsWhenOffline": [
    "FLINT_AND_STEEL",
    "BUCKET",
    "WATER_BUCKET",
    "LAVA_BUCKET"
    ],
    "worldsNoClaiming": [FreeBuild,Guests,Survival,Nether],
    "worldsNoPowerLoss": [FreeBuild,Guests,Survival,Nether]
    }

    This is my error:

    22:03:30 [SEVERE] org.mcteam.factions.gson.JsonSyntaxException: org.mcteam.factions.gson.stream.MalformedJsonException: invalid number or unquoted string near laiming": [FreeBuild, Guests, Survival,
    22:03:30 [SEVERE] at org.mcteam.factions.gson.Streams.parse(Streams.java:52)
    22:03:30 [SEVERE] at org.mcteam.factions.gson.Gson.fromJson(Gson.java:516)
    22:03:30 [SEVERE] at org.mcteam.factions.gson.Gson.fromJson(Gson.java:486)
    22:03:30 [SEVERE] at org.mcteam.factions.gson.Gson.fromJson(Gson.java:436)
    22:03:30 [SEVERE] at org.mcteam.factions.gson.Gson.fromJson(Gson.java:408)
    22:03:30 [SEVERE] at org.mcteam.factions.Conf.load(Conf.java:182)
    22:03:30 [SEVERE] at org.mcteam.factions.commands.FCommandReload.perform(FCommandReload.java:38)
    22:03:30 [SEVERE] at org.mcteam.factions.commands.FBaseCommand.execute(FBaseCommand.java:61)
    22:03:30 [SEVERE] at org.mcteam.factions.Factions.handleCommand(Factions.java:345)
    22:03:30 [SEVERE] at org.mcteam.factions.Factions.onCommand(Factions.java:330)
    22:03:30 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    22:03:30 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    22:03:30 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:279)
    22:03:30 [SEVERE] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:428)
    22:03:30 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:413)
    22:03:30 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    22:03:30 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    22:03:30 [SEVERE] Caused by: org.mcteam.factions.gson.stream.MalformedJsonException: invalid number or unquoted string near laiming": [FreeBuild, Guests, Survival,
    22:03:30 [SEVERE] at org.mcteam.factions.gson.stream.JsonReader.syntaxError(JsonReader.java:1110)
    22:03:30 [SEVERE] at org.mcteam.factions.gson.stream.JsonReader.decodeLiteral(JsonReader.java:1100)
    22:03:30 [SEVERE] at org.mcteam.factions.gson.stream.JsonReader.peek(JsonReader.java:343)
    22:03:30 [SEVERE] at org.mcteam.factions.gson.Streams.parseRecursive(Streams.java:61)
    22:03:30 [SEVERE] at org.mcteam.factions.gson.Streams.parseRecursive(Streams.java:76)
    22:03:30 [SEVERE] at org.mcteam.factions.gson.Streams.parseRecursive(Streams.java:84)
    22:03:30 [SEVERE] at org.mcteam.factions.gson.Streams.parse(Streams.java:41)
    22:03:30 [SEVERE] ... 16 more
     
  5. Offline

    Deathfromace

    Thanks once again for the update...always seems something gets added that I would never think of and it adds a whole new thing to the server. Though I do think
    Code:
    claimsMustBeConnected": false,
    is broken. I started a whole new map on my server and put that on at the start but it gave the error message that you have to claim land near the first claimed spot...but no one has claimed anything yet.

    Also is there any way to make the default commands /invite and /accept apply to the not being used near enemy and on enemy territory? Or really making only /accept disable in the scenario would work as at the moment its something people can do to get out of pvp and I know most servers have that basic command.
     
  6. Offline

    Zalastri

    Thanks for adding the faction tag variable! Very awesome of you, I appreciate it.

    Tonight I was thinking, since faction titles (representing ranks) are going to be a big part of the social setup on my server, it'd be nice if factions that were set to open could have an (optional) automatic title assigned to people who join it on their own. For example, Initiate Zalastri. I want to have everyone on the server have tags all the time, and without something like this there will be a gap in that, ya know?

    Also, a less nitpicky suggestion, perhaps an on/off switch for the admin and mod denoting portion of the factions name tag? It's a bit redundant if that person's title is King.

    That no pvp for non faction players option is interesting. Tempted to try it.

    Don't quote me on this, but I would guess (if you don't mind losing ALL land claim values) deleting board.json would enable you to claim land. I say this because I'm assuming you started a whole new map and disregarded your old one, but kept your factions folder. If you just added a map to your old server and still run any of your old maps/need any factions data, don't do that.
     
  7. Offline

    RugRats

    @essentialsteam
    Didn't work for me. What I did though was add "depend: [Factions]" in essentials jar to plugin.yml and added "softdepend: [Essentials]" in factions jar to plugin.yml. it made essentials load before factions and no errors :D
     
  8. Offline

    ledhead900

    @Brettflan 1.3.1 broke new faction creation for us
    we are on CB 903 and well our VIPS can create a faction but it does not claim them any land when doing so, I have set that new claim only if connected to true and now the new factions cannot claim land as making a faction no longer gives them a 16x16 bit of starting land to claim from so they cant actually claim anything at all.
     
  9. Offline

    Deathfromace

    I deleted all faction folders before the new server and it didn't work. I may give it another go after a few days and see if it happens again. Also I have the no-pvp on my server now and I think it will be a nice addition. It makes it so if people really don't want to pvp they don't have to and can just do whatever they want on the server but as my server is about guild wars that unguilded person wont have any protected land but that will be the trade off for not having pvp...I guess in a way you could say joining in the pvp earns you land. I also think it will keep new players safe and let them get a start without fear of being killed as soon as they leave the safe zone...as I have seen that happen on many servers including my own.

    While I am not sure if this is something wrong with your files but Factions is updated to 860 and has not been tested against anything above.
     
  10. Offline

    rity177

    One thing that would be nice, is if you could add it so a land claim could be multiple chunks, instead of just 1. On my server we try to take over vast areas, and it can become difficult to capture everything in an area. For instance, if there could be a multiplier for the chuncks,say x4, so 1 claim equals a perfect square of 4 chunks, that would make taking an area more rewarding.
     
  11. Offline

    ledhead900

    Well their is Autoclaim for all the types "Faction,Safezone,Warzone" Would u accept an autoclaim for taking land?
     
  12. Offline

    BakedBrotato

    @Brettflan I have a slight suggestion. Would it be possible to set up something, like an article of clothing, so other players could determine who is in their guild and who is in another with out looking at titles?
     
  13. Can you restrict people from building if they are not part of a faction? I want all my members to be in a faction and not able to build if they are not. Any settings for this in the config?
     
  14. Offline

    rity177

    ledhead900, as of now thats what we use, but We have fairly large empires that would benefit from battles /taking land actually being a larger area in one swift move.
     
  15. Offline

    algiuxas

    When I updated from 1.3.0 to 1.3.1, the plugin started to add [{curent world}] tag to the beginning of the chat.

    Instead of <{**GUILDNAME} 02:12:06 [Groupname] Username>: Message
    I get [{**GUILDNAME} world]<02:12:37 [Groupname] Username>: Message

    The tag is gone when I disable the plugin.

    I use latest version of iChat, Factions v1.3.1, CB860.

    My config file:
    Show Spoiler

    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,
      "powerRegenOffline": false,
      "prefixAdmin": "**",
      "prefixMod": "*",
      "factionTagLengthMin": 3,
      "factionTagLengthMax": 10,
      "factionTagForceUpperCase": false,
      "newFactionsDefaultOpen": true,
      "showMapFactionKey": true,
      "CanLeaveWithNegativePower": true,
      "preloadChatPlugins": true,
      "chatTagEnabled": true,
      "chatTagRelationColored": true,
      "chatTagReplaceString": "{FACTION}",
      "chatTagInsertAfterString": "",
      "chatTagInsertBeforeString": "",
      "chatTagInsertIndex": 1,
      "chatTagPadBefore": false,
      "chatTagPadAfter": true,
      "chatTagFormat": "{%s}§f ",
      "factionChatFormat": "[F] %s§f: %s",
      "allowNoSlashCommand": false,
      "autoLeaveAfterDaysOfInactivity": 31.0,
      "homesEnabled": true,
      "homesMustBeInClaimedTerritory": false,
      "homesTeleportToOnDeath": false,
      "homesTeleportAllowedFromEnemyTerritory": false,
      "homesTeleportAllowedEnemyDistance": 32.0,
      "disablePVPForFactionlessPlayers": false,
      "claimsMustBeConnected": true,
      "considerFactionsReallyOfflineAfterXMinutes": 0.0,
      "territoryShieldFactor": 0.5,
      "territoryDenyBuild": true,
      "territoryDenyBuildWhenOffline": true,
      "territoryDenyUseage": true,
      "territoryBlockCreepers": true,
      "territoryBlockCreepersWhenOffline": true,
      "territoryBlockFireballs": true,
      "territoryBlockFireballsWhenOffline": true,
      "territoryBlockTNT": true,
      "territoryBlockTNTWhenOffline": true,
      "safeZoneDenyBuild": true,
      "safeZoneDenyUseage": true,
      "safeZoneBlockTNT": true,
      "warZoneDenyBuild": true,
      "warZoneDenyUseage": true,
      "warZoneBlockCreepers": false,
      "warZoneBlockFireballs": false,
      "warZoneBlockTNT": true,
      "warZonePowerLoss": true,
      "warZoneFriendlyFire": false,
      "wildernessDenyBuild": false,
      "wildernessDenyUseage": false,
      "wildernessBlockCreepers": false,
      "wildernessBlockFireballs": false,
      "wildernessBlockTNT": false,
      "wildernessPowerLoss": true,
      "territoryProtectedMaterials": [
        "CHEST",
        "DISPENSER",
        "WOODEN_DOOR",
        "FURNACE"
      ],
      "territoryDenyUseageMaterials": [
        "BUCKET",
        "LAVA_BUCKET",
        "WATER_BUCKET",
        "FLINT_AND_STEEL"
      ],
      "territoryProtectedMaterialsWhenOffline": [
        "CHEST",
        "DISPENSER",
        "TRAP_DOOR",
        "WOODEN_DOOR",
        "FURNACE"
      ],
      "territoryDenyUseageMaterialsWhenOffline": [
        "BUCKET",
        "LAVA_BUCKET",
        "WATER_BUCKET",
        "FLINT_AND_STEEL"
      ],
      "worldsNoClaiming": [
        "world_nether",
        "world"
      ],
      "worldsNoPowerLoss": []
    }

    My iChat config file:
    Show Spoiler

    Code:
    censor-list: []
    censor-color: '&f'
    date-format: HH:mm:ss
    message-format: '<+time [+prefix+group+suffix&f] +name>: +message'
    censor-char: '*'
    censor-string-color: '&f'
    censor-colored: false
    
     
  16. hi
    we are running a pvp server that focuses around the factions plugin. sadly we cant use the factions home since we dont want our playeres to teleport at all. it would be nice if you would consider adding another config option for the /f home to disable it. only the port command, spawning on faction home is a neat feature.
    thanks in advance and for your plugin
    mats
     
  17. Offline

    Brettflan

    Your text editor of choice is messing up the file encoding.

    Without the error message it provides, there's no telling what the problem might be.

    OK, will check into that.

    This one comes up pretty often.
    It's pointing out the problem there. You edited the world names in manually? There are commands for that.
    /f worldnoclaim - enable/disable faction land claiming in the world you're currently in (toggle)
    /f worldnopowerloss - enable/disable power loss on death in the world you're currently in (toggle)

    I just checked; you're right, it's currently broken such that the first claim isn't exempted properly. I'll release a fix for it soonish.

    Seems a bit far fetched; I'm not planning on it.

    Not planned, sorry.

    Not planned and not even possible AFAIK.

    Not a bad idea, but not currently planned.

    Not currently planned.


    One thing I'm going to add is a configurable time period after logging in during which a player can't do PvP damage to other players. This is to counteract the built-in (by Mojang) 3-second time period during which players can't take PvP damage after logging in. Apparently a lot of players on my server have been taking advantage of that by logging off and back in to gain temporary PvP invincibility. The default for this option will be 3 seconds, though on my server I'll set it to 5 seconds to make it even more undesirable.

    Another quick release as promised, mainly to fix the "claimsMustBeConnected" bug.

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

    Deathfromace

    I won't claim to know anything about coding but I was hoping it would be something like

    Player 1: /accept
    Server: You have been in combat in the last 30 secs
    or
    Server: You are near an enemy.
     
  19. Offline

    BioRage

    @Brettflan

    Forgot safeclaim can replace world guard, too bad I can't get rid of preventing fire from being started!

    Could you elaborate on safeclaim?
    I assume it:
    1. Protects from greifing (BlockBreaking / Torches? / Grass / Paintings?)

    Keep up the good work, really appreciate what you do for this plugin, it's simply amazing.
     
  20. Offline

    TerrorBite

    I see from your signature that you use MultiVerse. Try going into your MultiVerse config and setting "prefix: false"

    Your issue looks like the MultiVerse plugin is adding the world tag to the front and then Factions is injecting its tag at what it believes is the correct position.
     
  21. Offline

    ledhead900

    @Brettflan


    for $6 would u add the option to disable PVP protection on all factions so that same team can hurt eachother inside Warzone territory, Since for our uses I use the warzone territory to zone TommyTony's War plugin zones since some are inside faction areas we just zone it as warzone I was hopeing it would throw the anti same team pvp out the window.

    Let me know if u will do this and I will donate the money.
     
  22. Offline

    Brettflan

    Already in as "warZoneFriendlyFire" in conf.json as of 1.3.0.
     
  23. Offline

    Deathfromace

    Hmm I just thought of something that I have yet to try. If the option to only claim territory near your first claim is on how does claiming land on another faction work once you get them to lose power? Will that still work or is there already something in place that makes it to that is still allowed?
     
  24. Offline

    Brettflan

    It works like you'd probably expect. If their territory connects to yours, you can claim it. If not, not.
     
  25. Offline

    Kafes

    Hi, I use herochat. When i use factions and create a faction, my tag isn't added to chat. For example if i create a clan Ninja with NIN tag and use chat, it doesn't show my faction tag infront at all. How can i fix this? Do i have to remove herochat?

    Also, could we possibly make players buy land rather than just claiming it? So for example if i have EssentialsEconomy and the user has 500$ he can claim some land for himself.

    Help appreciated, thanks!
    (great plugin by the way)
     
  26. Offline

    dwatring

    @Brettflan

    Thank you for being so responsive with an answer. If you want to know what chat plugin I am using that is messing up the files it is this.
     
  27. Offline

    embty

    Poeple can use slabs in safezones.
     
  28. Offline

    Whitherunn

    Alright so I checked the start up of the server after I changed the conf and there was no error message what so ever, I am so confused haha, I'm sorry if I am not giving sufficient info but I have nothing honestly.
     
  29. Offline

    ledhead900

    oh yea thx
     
  30. Offline

    lloyd menzies

    Thanks for fixing the claims must be connected issue i was ripping my hair out.
     

Share This Page