[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

    gmore70

    Same issue. AND Im running Essentials 2.5, but NOT essentials chat (i like ichat)
     
  2. Offline

    Brettflan

    Damn, confirmed. For the time being, unless you're using EssentialsChat (version 2.5.1 or newer, for that matter), you'll need to stick with Factions 1.3.8. It's available at the same download location.
    I'll try to get a fix up soonish, though I'll probably need to temporarily remove the EssentialsChat integration in the process.

    OK then, I didn't expect my quick last-ditch attempted fix would actually work, but it appears to. So:
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  3. Offline

    ledhead900

    In regards to both posts thanks for the updates, I was also wondering if adminbypass could bypass the claim in notconnected protection and change spawnloc of home, tired to that last night instead had to fiddle with conigs and reloading :p just an idea as some times us admins decided to change our server structure and wnat factions starting in a certain spot and instead of waiting for a leader to be on admins can just manually overrdie them.
     
  4. Offline

    Brettflan

    1. At this point, might as well. It's simple enough.
    2. Isn't this what you're asking for?
     
    MikalMirkas likes this.
  5. Offline

    ledhead900

    Yes ... :oops: I must of miss read the post before.
     
  6. Offline

    swift_fox24

  7. Offline

    MikalMirkas

    I have a question on the subject of chat integrations - in this case HeroChat and Factions. Is there a way to somehow take priority in a command over another chat? When using chat with certain plugins (i.e. mcMMO's Party Chat and Faction's Faction Chat being incompatible with some other chat mods I use). Do you ever plan to somehow make an option that changes priorities, or is this a problem with Bukkit/other plugins? My situation is this: I've got HeroChat and Factions on my local server. Everything works fine, except for the conflicting chats. If you enable the f chat, there will be a prompt saying "Factions-Only Chat ENABLED/DISABLED" but the chat is still being displayed by HeroChat, and not Factions.
    Sorry if you can't comprehend what I wrote, haven't slept in a few days, and can't find the option anywhere in the config.json.
     
  8. Offline

    TerrorBite

    1. Only one of my worlds is Factions/PvP. It seems a little irrelevant to have faction tags showing when nobody on the server is actually in the factions world, and it takes up space in the chat area.
    2. Thanks for pointing this out, I didn't know this option existed. Sadly the documentation for Factions is hardly in-depth.
    3. Alright, well I may look at implementing this myself if I can, and if I'm successful, would you accept the changes into your own codebase?
     
  9. Offline

    Simmons

    Ok, I'm getting quite frustated with trying to get this to work with HeroChat I either get this:
    [​IMG]
    or this:
    [​IMG]
    This is my HeroChat config for the first image:
    http://pastebin.com/U3bhY3wh
    This is my HeroChat config for the second image:
    http://pastebin.com/RcwMgvF3
    I've also tried this:
    Code:
        default-message-format: '{color}[{nick}] {faction}[{prefix}{color}] {suffix}{player}{color}: '
    
    and this:
    
        default-message-format: '{color}[{nick}] {FACTION}[{prefix}{color}] {suffix}{player}{color}: '
    
    this too:
    
        default-message-format: '{color}[{nick}] [1][{prefix}{color}] {suffix}{player}{color}: '
    
    and don't forget this:
    
        default-message-format: '{color}[{nick}] [:;][{prefix}{color}] {suffix}{player}{color}: '
        with
        "chatTagInsertAfterString": ":",
        "chatTagInsertBeforeString": ";",
        and
        default-message-format: '{color}[{nick}] [<>][{prefix}{color}] {suffix}{player}{color}: '
        with
        "chatTagInsertAfterString": "<",
        "chatTagInsertBeforeString": ">",
    and here's my Factions config:
    http://pastebin.com/Kj2jTsnq
    As you can tell I find this quite confusing and it should be explained better somewhere. Any help would be great.
     
  10. Offline

    algiuxas

    When I updated to 1.4.0, the faction chat (/f c) stopped working, and the chat tag in chat wouldn't show up any more. It says that faction chat is enabled/disabled, but even it it's enabled, all messages are being sent to normal chat. I'm using iChat-p3 2.3.2, but I didn't do anything with it and it was working well until I updated factions. I'm running Bukkit RB #1000.
     
  11. Offline

    Brettflan

    For those of you with confusion as to why chat functionality breaks down between this plugin and chat plugins which use local or channel based chat (other than EssentialsChat which now has special integration added), please read this Bukkit feature request which should perhaps explain it, and feel free to Like or comment on the issue:
    http://leaky.bukkit.org/issues/1109

    I'll try to make sure Olof and myself keep an updated bare JAR file on the GitHub download page. That should be sufficient, right?

    1. Yeah, I guess it's just one of those things that could go either way depending on who you ask and how they want their particular setup to work. I can't see a simple way to please every potential desired functionality as to which messages should get faction tags and which shouldn't based on various criteria, so... not something I'm likely to work on.
    2. Yeah, even with the updates Olof recently made to the documentation, it could still use some work. For me, it's one of those things I always mean to get to at some point but somehow never get around to it. :p Chalk it up to limited time available to spend on the plugin and a strong preference for coding over writing documentation.
    3. Certainly, we accept pull requests that are at least passably coded (not incomplete or completely bug-ridden) and don't detract from other functionality. Even in those cases, we'll probably accept it anyway and do some further work ourselves to make it fit in.

    What was the last version of Factions you used before the update? Several versions back I added iChat to the softdepend list so that iChat should get chat priority. If you're using local or channel chat, that's the reason; see the link at the top of this post.
     
    MikalMirkas likes this.
  12. Offline

    ledhead900

    @Brettflan

    This is probably not on your current roadmap but I believe is a viable solution to running extra region plugins to protect heavy traffic areas while maintaining faction territory ownership.

    I proclaim a new zone type called a Protectzone or Reservedzone what this zone would do is take the safezone code for no build and no place and stuff but apply it within the same faction tag so it would essentially be owned by the faction in same way as a normal claim would work only with safezone protection settings.

    The zone could be used to protect or "Reserve" sections of territory so that you can still claim the land but stop anyone from building in it with the intent to further protect the areas around Faction Spawn " like a mini Spawn protection radius system" Faction leaders then could do /f reserveclaim or /f autoreserve and to protect high traffic areas or complex works around the faction territory.

    I propose it as I would love the ability of what safezone offers but apply that to territory I own so the territory could still be lost during power loss and wartime as the current issue using any other method to region an area to limit building would not trade the ownership to the other faction who took the claim over until and admin or the owner un region it.

    I hope you understand what I meant by all of this I don't think it would be toooo much trouble as all of the code for it exists for the core features of it "Safezone","Territory" You create a new claim type basically with both properties of faction tagging and safezone but in way that the safezone options could be changed such as anti mob or pvp could be toggled.

    Id be willing to donate for this feature as I'm struggling to find a suitable solution to this simple problem of stopping same faction members from building in specific areas of your faction that are designed to be special for ppl to see but not wrecked by other members by accident or on purpose.

    Again I hope you consider it as it's a pretty big ask aside from Economy to trade claims with members.
     
  13. Offline

    algiuxas

    @Brettflan I updated from 1.3.8 I suppose. The iChat simply changes the chat layout I guess, it has nothing to do with localizing or channelizing-ish chat.
     
  14. Offline

    Brettflan

    @ledhead900
    Would they gain all of the attributes of a safe zone, or just specific ones? TNT protection? I suppose the limit for how many such designations are allowed for each faction could be configurable.
    Let me give it a bit of thought.

    In that case, I'm not sure what the problem might be. Can you try starting the server up without iChat and test it to see if the problem goes away? If it doesn't it might always be some other plugin with chat-related features.
    Anyone else using iChat have that problem newly pop up?


    I've been playing around with a new command which can be used to change any option in conf.json, mainly for people who have trouble editing the file manually for whatever reason. To my surprise, it seems to already be nearly complete. It even fixes any capitalization errors you might make. It also saves the file immediately after changing the option. Me testing it out through the console:
    Code:
    >f config colorENeMy blue
    [INFO] "colorEnemy" option set to "BLUE".
    >f config colorENeMy red
    [INFO] "colorEnemy" option set to "RED".
    >f config powerperdeath 5.123
    [INFO] "powerPerDeath" option set to 5.123.
    >f config powerperdeath 6.0
    [INFO] "powerPerDeath" option set to 6.0.
    >f config chatTagReplaceString coooool stuff I tells ya
    [INFO] "chatTagReplaceString" option set to "coooool stuff I tells ya".
    >f config chatTagReplaceString  <space before and after>
    [INFO] "chatTagReplaceString" option set to " <space before and after>".
    [INFO] [CONSOLE] oh well, space before works, but after doesn't... minor drawback
    >f config chatTagReplaceString {FACTION}
    [INFO] "chatTagReplaceString" option set to "{FACTION}".
    >f config homesenabled
    [INFO] Usage: f config [setting] [value]
    >f config homesenabled on
    [INFO] "homesEnabled" option set to true (enabled).
    >f config homesenabled false
    [INFO] "homesEnabled" option set to false (disabled).
    >f config homesenabled yes
    [INFO] "homesEnabled" option set to true (enabled).
    >f config territoryProtectedMaterials not_a_valid_material
    [INFO] Cannot change "territoryProtectedMaterials" set: "NOT_A_VALID_MATERIAL" is not a valid material.
    >f config territoryProtectedMaterials furnace
    [INFO] "territoryProtectedMaterials" set: Material "FURNACE" removed.
    >f config territoryProtectedMaterials furnace
    [INFO] "territoryProtectedMaterials" set: Material "FURNACE" added.
    >f config worldsNoPowerLoss someworld
    [INFO] "worldsNoPowerLoss" set: "someworld" added.
    >f config worldsNoPowerLoss someworld
    [INFO] "worldsNoPowerLoss" set: "someworld" removed.
    [INFO] [Factions v1.4.0test] "homesEnabled" option set to true (enabled). Command was run by Brettflan.
    
    EDIT: added example log output from a player running the command to the end of the above.
     
  15. Offline

    ledhead900

    I was thinking like it would work the same a safezone but allow faction leader to build and destroy and moderators or maybe a freind list ?. And have a limit to how many can be made per faction or something.

    The base idea was just to get the protection of build deny into factions so that memebers cannont modify KEY areas of faction for reasons I described in my last post " important structures"
     
  16. Offline

    Ozelo

    Firstly, awesome plugin you made. BUT, could you please make it so DON'T render essentials.ignore useless? I need /ignore for chat jerks as much as factions.
     
  17. Offline

    Brettflan

    @ledhead900
    Yeah, let me think about it a bit, and skim through the code that would be affected when I get a chance.

    Can you provide some details about what exactly Factions is doing that's causing you problems?
     
  18. Offline

    MCBess

    I get this error in my consol:

    [Factions v1.4.0] Loading conf from disk

    >10:22:59 [SEVERE] com.massivecraft.factions.gson.JsonParseException: Expecting object found: ""

    >10:22:59 [SEVERE] at com.massivecraft.factions.gson.JsonObjectDeserializationVisitor.visitFieldUsingCustomHandler(JsonObjectDeserializationVisitor.java:100)

    >10:22:59 [SEVERE] at com.massivecraft.factions.gson.ReflectingFieldNavigator.visitFieldsReflectively(ReflectingFieldNavigator.java:63)

    >10:22:59 [SEVERE] at com.massivecraft.factions.gson.ObjectNavigator.accept(ObjectNavigator.java:120)

    >10:22:59 [SEVERE] at com.massivecraft.factions.gson.JsonDeserializationContextDefault.fromJsonPrimitive(JsonDeserializationContextDefault.java:85)

    >10:22:59 [SEVERE] at com.massivecraft.factions.gson.JsonDeserializationContextDefault.deserialize(JsonDeserializationContextDefault.java:56)

    >10:22:59 [SEVERE] at com.massivecraft.factions.gson.Gson.fromJson(Gson.java:552)

    >10:22:59 [SEVERE] at com.massivecraft.factions.gson.Gson.fromJson(Gson.java:499)

    >10:22:59 [SEVERE] at com.massivecraft.factions.gson.Gson.fromJson(Gson.java:468)

    >10:22:59 [SEVERE] at com.massivecraft.factions.gson.Gson.fromJson(Gson.java:418)

    >10:22:59 [SEVERE] at com.massivecraft.factions.gson.Gson.fromJson(Gson.java:390)

    >10:22:59 [SEVERE] at com.massivecraft.factions.Conf.load(Conf.java:200)

    >10:22:59 [SEVERE] at com.massivecraft.factions.Factions.onEnable(Factions.java:116)

    >10:22:59 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)

    >10:22:59 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)

    >10:22:59 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)

    >10:22:59 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)

    >10:22:59 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)

    >10:22:59 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)

    >10:22:59 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)

    >10:22:59 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)

    >10:22:59 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)

    >10:22:59 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    >10:22:59 [INFO] [Factions v1.4.0] Failed to load the config from disk.

    And my config is:
    {
    "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": 4.0,
    "powerRegenOffline": false,
    "prefixAdmin": "**",
    "prefixMod": "*",
    "factionTagLengthMin": 3,
    "factionTagLengthMax": 10,
    "factionTagForceUpperCase": false,
    "newFactionsDefaultOpen": true,
    "showMapFactionKey": true,
    "CanLeaveWithNegativePower": true,
    "chatTagEnabled": true,
    "chatTagRelationColored": true,
    "chatTagReplaceString": "{FACTION}",
    "chatTagInsertAfterString": "",
    "chatTagInsertBeforeString": "",
    "chatTagInsertIndex": 1,
    "chatTagPadBefore": false,
    "chatTagPadAfter": true,
    "chatTagFormat": "%s§f",
    "factionChatFormat": "%s§f %s",
    "allowNoSlashCommand": true,
    "autoLeaveAfterDaysOfInactivity": 14.0,
    "homesEnabled": false,
    "homesMustBeInClaimedTerritory": true,
    "homesTeleportToOnDeath": true,
    "homesRespawnFromNoPowerLossWorlds": true,
    "homesTeleportCommandEnabled": true,
    "homesTeleportAllowedFromEnemyTerritory": true,
    "homesTeleportAllowedFromDifferentWorld": true,
    "homesTeleportAllowedEnemyDistance": 32.0,
    "homesTeleportIgnoreEnemiesIfInOwnTerritory": true,
    "disablePVPForFactionlessPlayers": false,
    "noPVPDamageToOthersForXSecondsAfterLogin": 3,
    "claimsMustBeConnected": false,
    "claimsCanBeUnconnectedIfOwnedByOtherFaction": true,
    "considerFactionsReallyOfflineAfterXMinutes": 0.0,
    "territoryShieldFactor": 0.3,
    "territoryDenyBuild": true,
    "territoryDenyBuildWhenOffline": true,
    "territoryDenyUseage": true,
    "territoryEnemyDenyBuild": true,
    "territoryEnemyDenyBuildWhenOffline": true,
    "territoryEnemyDenyUseage": true,
    "territoryEnemyProtectMaterials": true,
    "territoryBlockCreepers": false,
    "territoryBlockCreepersWhenOffline": false,
    "territoryBlockFireballs": false,
    "territoryBlockFireballsWhenOffline": false,
    "territoryBlockTNT": false,
    "territoryBlockTNTWhenOffline": false,
    "safeZoneDenyBuild": false,
    "safeZoneDenyUseage": false,
    "safeZoneBlockTNT": false,
    "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,
    "pistonProtectionThroughDenyBuild": true,
    "territoryProtectedMaterials": [
    "DISPENSER"
    ],
    "territoryDenyUseageMaterials": [
    "FLINT_AND_STEEL"
    ],
    "territoryProtectedMaterialsWhenOffline": [
    "DISPENSER"
    ],
    "territoryDenyUseageMaterialsWhenOffline": [
    "FLINT_AND_STEEL"
    ],
    "worldsNoClaiming": [],
    "worldsNoPowerLoss": []
    }
     
  19. Offline

    Brettflan

    Please read the FAQ at the bottom of this page:
    http://massivecraft.com/plugins/factions
    The config you posted seems to be valid, so it's probably your text editor which is messing the file format up.

    If all else fails, wait for the next release of Factions and then make all changes using the /f config command.
     
  20. Offline

    swift_fox24

    As long as you give that JAR file to the plugin owner, yes. The one that he had previously didn't work.
     
  21. Offline

    Ozelo

    Sure. After enabling Factions (mv Factions.jar plugins/) and restarting, people who was previously ignored from players by using the command /ignore (essentials.ignore) now speak freely. Somehow it is just nullifying the "ignore" behavior of EssentialsChat I guess... by just disabling Factions (mv plugins/Factions.jar temp/) and restarting, people that have to be ignored, then, are ignored normally.

    What else I could provide you more info about?
     
  22. Offline

    Haekon

    Mebbe I missed it, but anybody looked into a Factions<-->DynMap (or something similar) bridge? It'd be pretty sweet to see where current territory lines are worldwide. Obviously not as useful on servers with hundreds of useless 2 man factions that rely on obscurity for security, but a more tightly controlled 2-5 faction system could rock the hell out of it.

    Lovin' the new wargrounds system, btw.
     
  23. Offline

    theiking

    Is there a way to turn off the power cap, like have the nations right, but without power restrictions or unlimited land able to be claimed
     
  24. Offline

    Tima25

    Is it possible to set a limit to how many people can be in one faction/guild?
    Possibly use this as a permission so certain usergroups can use only have a certain amount of people in one faction
     
  25. Offline

    Lighty

    I updated to Factions 1.4 from 1.3.7 and at the same time updated to Essentials '2.5.4'. After doing this, the name colours were not showing (they were for faction tags). I can only think it's related to the chat integration with essentials that was changed in 1.4.

    Can anyone help me?

    Regards,
    Lighty.
     
  26. Offline

    Kidwatson

    This program runs smoothly and all for me.. I just have one problem. When I type in a command on my server such as, /f disband (name) It says I dont have permissions to do so. It's my server, and I did put the Permissions under the Admin group too. I don't know why I don't have "permission".

    If anyone can help, that'd be great!
    Thanks.
     
  27. Offline

    Randy Schouten

    Hey there!

    I'm currently developing EpicQuest, and I was wondering if this plugin has a (minimal) API that I can use.
    I will need to have the plugin fire 2 events:
    -When a player joins a faction, so I can give the faction quest to him right away
    -When a player leaves a faction, so I can remove his quest

    And a method so I can check the members of a group.

    If this is not possible, then I will dig through the config files and work that way, if everything is stored there.
    I have not really looked into this plugin, but several people asked for Factions implementation.

    I look forward to your awnser!
     
  28. Offline

    zaklampje

    Question: Could I remove factions in-game?
     
  29. Offline

    Helloimme

    Hello, we're using your plugin in our server and while it works perfectly for factions, on their zones and on the wilderness some players do not receive damage nor deal any damage, i have checked the god mode and everything (to be sure is disabled) and we can't find the cause for this, any idea what could be causing it?

    anyway, apart from that, Cool plugin, is there anyway we can take out the * out of mods and admins? they are working perfectly, but, to me they are ugly lol, thanks for your time developing this :D

    EDIT: its not just PVP damage, they seem to acquire some god mode.
    EDIT2: we're using essentials for god mode, we have world edit too.
     
  30. Offline

    mythcaptor

    Im a HUGE fan of this plugin, It is the core backbone of my server, but I have one request that would be easy to implement, and is without a doubt the most complained about thing on my server.
    Could you please add /f power <playername> that displays a player's power, and if no name is given, your own power? Thanks a lot!
     

Share This Page