[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

    Uminily

    I got some problem ...

    My players can place blocks in enemies' factions & safe zone but they can't destroy it.
    However, the message "You can't build in safeZone" appears.

    The server is based on this plugin. Please help me :)
     
  2. Offline

    SulimirCular

    If one of my players tries to join a Faction, system prints out the following message:

    "You may only join normal factions. This is a system faction."

    What does that mean?? help pls
     
  3. Offline

    SeijiTataki

    Would it be possible to set it up so that you can turn off monster protection in safe zones? I have areas that I am setting up for build protection around the spawn, but I have a players that will drag monsters into the safe area, and attack them, since the monsters will not attack them back.

    I could care less about the monster protection, I just want to make block-level protections for a zone that players can't faction claim.

    I suppose I could just create a non-joinable faction, but it's far more convenient to just make the safe zones, because I don't need to define or tweak regions manually through configs that way.
     
  4. Offline

    SirPali

    This makes no sense.
    No matter what I try, my plugin conf.json keeps rolling back to an old version.
    Here is what I do:

    - I turn the server off
    - Change the config
    - Save the file
    - Restart the server
    - Reload the json files
    - Save the factions

    And then my config is back to it's old state again.
    It makes no sense, and it's driving me mad.
    What am i doing wrong!


    Edit:
    Apparently, if I as much as edit 1 true to a false in my config, and reload it, I get the following error message:

    PHP:
    11:15:02 [SEVEREorg.mcteam.factions.gson.JsonSyntaxExceptionorg.mcteam.facti
    ons
    .gson.stream.MalformedJsonExceptioninvalid number or unquoted string near ?
    {  
    "colorMember""G
    11:15:02 [SEVERE]       at org.mcteam.factions.gson.Streams.parse(Streams.java:5
    2)
    11:15:02 [SEVERE]       at org.mcteam.factions.gson.Gson.fromJson(Gson.java:516)

    11:15:02 [SEVERE]       at org.mcteam.factions.gson.Gson.fromJson(Gson.java:486)

    11:15:02 [SEVERE]       at org.mcteam.factions.gson.Gson.fromJson(Gson.java:436)

    11:15:02 [SEVERE]       at org.mcteam.factions.gson.Gson.fromJson(Gson.java:408)

    11:15:02 [SEVERE]       at org.mcteam.factions.Conf.load(Conf.java:155)
    11:15:02 [SEVERE]       at org.mcteam.factions.commands.FCommandReload.perform(F
    CommandReload.java:61)
    11:15:02 [SEVERE]       at org.mcteam.factions.commands.FBaseCommand.execute(FBa
    seCommand.java:61)
    11:15:02 [SEVERE]       at org.mcteam.factions.Factions.handleCommand(Factions.j
    ava:287)
    11:15:02 [SEVERE]       at org.mcteam.factions.Factions.onCommand(Factions.java:
    272)
    11:15:02 [SEVERE]       at org.bukkit.command.PluginCommand.execute(PluginComman
    d.java:35)
    11:15:02 [SEVERE]       at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
    mmandMap.java:128)
    11:15:02 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.dispatchCommand(Cr
    aftServer.java:281)
    11:15:02 [SEVERE]       at net.minecraft.server.NetServerHandler.handleCommand(N
    etServerHandler.java:718)
    11:15:02 [SEVERE]       at net.minecraft.server.NetServerHandler.chat(NetServerH
    andler.java:684)
    11:15:02 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:677)
    11:15:02 [SEVERE]       at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:3
    2)
    11:15:02 [SEVERE]       at net.minecraft.server.NetworkManager.b(NetworkManager.
    java:217)
    11:15:02 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:75)
    11:15:02 [SEVERE]       at net.minecraft.server.NetworkListenThread.a(SourceFile
    :105)
    11:15:02 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:401)
    11:15:02 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:311)
    11:15:02 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    11:15:02 [SEVERE] Caused by: org.mcteam.factions.gson.stream.MalformedJsonExcept
    ion: invalid number or unquoted string near ?{  "
    colorMember": "G
    11
    :15:02 [SEVERE]       at org.mcteam.factions.gson.stream.JsonReader.syntaxErro
    r
    (JsonReader.java:1110)
    11:15:02 [SEVERE]       at org.mcteam.factions.gson.stream.JsonReader.decodeLite
    ral
    (JsonReader.java:1100)
    11:15:02 [SEVERE]       at org.mcteam.factions.gson.stream.JsonReader.peek(JsonR
    eader
    .java:343)
    11:15:02 [SEVERE]       at org.mcteam.factions.gson.Streams.parse(Streams.java:3
    9
    )
    11:15:02 [SEVERE]       ... 22 more

    This is my config:

    PHP:
    {
      
    "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"5.0,
      
    "powerRegenOffline"false,
      
    "prefixAdmin""**",
      
    "prefixMod""*",
      
    "factionTagLengthMin"3,
      
    "factionTagLengthMax"10,
      
    "factionTagForceUpperCase"false,
      
    "newFactionsDefaultOpen"false,
      
    "showMapFactionKey"true,
      
    "CanLeaveWithNegativePower"true,
      
    "preloadChatPlugins"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"4.0,
      
    "homesEnabled"true,
      
    "homesTeleportToOnDeath"true,
      
    "homesTeleportAllowedEnemyDistance"32.0,
      
    "territoryShieldFactor"0.3,
      
    "territoryDenyBuild"true,
      
    "territoryDenyUseage"true,
      
    "territoryBlockCreepers"false,
      
    "territoryBlockFireballs"false,
      
    "territoryBlockTNT"false,
      
    "safeZoneDenyBuild"false,
      
    "safeZoneDenyUseage"false,
      
    "safeZoneBlockTNT"true,
      
    "warZoneDenyBuild"true,
      
    "warZoneDenyUseage"true,
      
    "warZoneBlockCreepers"false,
      
    "warZoneBlockFireballs"false,
      
    "warZoneBlockTNT"true,
      
    "warZonePowerLoss"true,
      
    "wildernessDenyBuild"false,
      
    "wildernessDenyUseage"false,
      
    "wildernessBlockCreepers"false,
      
    "wildernessBlockFireballs"false,
      
    "wildernessBlockTNT"false,
      
    "wildernessPowerLoss"true,
      
    "territoryProtectedMaterials": [
        
    "TRAP_DOOR",
        
    "FURNACE",
        
    "WOODEN_DOOR",
        
    "DISPENSER",
        
    "CHEST"
      
    ],
      
    "territoryDenyUseageMaterials": [
        
    "FLINT_AND_STEEL",
        
    "BUCKET",
        
    "LAVA_BUCKET",
        
    "WATER_BUCKET"
      
    ],
      
    "worldsNoClaiming": [],
      
    "worldsNoPowerLoss": []
    }
     
  5. Offline

    ledhead900

    I had this too but I fixed it.. turned out that conf.yml wont save if u have power settings changed and the players.json file have power + or - the changes. example conf.json says min power - 15 and u have a user with -20 the conf.json will roll back constantly to -20 to match it.

    To fix u need to open your players.json and edit the power manually to fit within your conf rules.

    Hope it helps but it may not be your issue so :confused:
     
  6. Offline

    SirPali

    Tried this, but all of my power's are within their respective ranges.
    I posted some more info in my earlier post. Seems like even if I just change a true to a false, or a 10 to a 9, the plugin fails to reload the config, and will say it has an invalid number or unquoted string even though everything is properly quoted.

    I only have to change the powerloss on death from 4 to 5 for instance for this to happen.
     
  7. Offline

    davidvp

    Would be great if you could do /f claim <radius>
    and "admin owned" factions dont need more power 2 claim more...
    So "we" can make small city's and stores for example that are owned by the server..?

    anyway great job keep it up :)
     
  8. Offline

    Magesblood

    @Brettflan
    What do you think about adding a option in the config to enable faction friendly fire when in warzone? Would help even more with the war plugin.
     
  9. Offline

    Brettflan

    That's correct. I don't currently plan to add a way to specifically disable the /f home command.

    I should clarify, by "not possible" I meant that it's not currently possible in Factions, and it's not currently planned either.

    Are you sure? They're properly prevented from destroying blocks in another faction's territory, but they get no message indicating as much? That should flat out be impossible unless there's a major undiscovered Bukkit bug causing it; not at all likely. Double check to see what problem is actually occurring.

    I can't duplicate this and there's no reason in the plugin that it could end up doing that, but others have had similar reports. Either another plugin is un-cancelling the build event for some reason (the more likely possibility), or it's a Bukkit bug.

    The faction they seem to be trying to join is not a normal faction (i.e. safe zone, war zone, or wilderness). If you're sure they're trying to join a valid player-created faction, please provide more details.

    I might see about adding that option, it should be simple.
    As long as you don't mind PVP being enabled, you could also use war zones instead of safe zones.

    Most likely, whatever program you're using to edit the file is mucking up the format/encoding. If all else fails, download and use Notepad++ to edit the file.

    To the above: I'm not planning to, sorry. It's not that they're bad ideas, I just don't have the time lately or the desire to work on these.
    If anyone has a pet idea they really really want added to the plugin: a donation might well change my mind. That may sound callous or greedy to some, but for the time being I need to focus my work on projects which will actually put food on my table.

    EDIT: oh yeah, I should mention that I checked on the possibility of preventing fires from being put out on faction territory by non-faction members, but it's apparently not currently possible in Bukkit.
     
  10. Offline

    ledhead900

    hmm well thanks for looking into it, so how much dontation would it take to incorperate all the good ideas u could do but "currently dont have planned"

    50,70,100 ?
     
  11. Offline

    Brettflan

    There have been quite a lot of ideas put forward and features requested for Factions. I could do most of them, with varying amounts of difficulty for each. I'd not propose to do all of them though, it would be too much. If you have a favorite idea or two or three, ask about them.
     
  12. Offline

    ledhead900

    one of my favs was the autoclaim :)

    Another would be region support for faction territory to block monsters specificly so leader/admin can make safe homes and starting towns within faction that ppl can still safely build in.

    I'm rooting for a admin /claim radius some of us have pretty high settings for power

    Mine are -15 80 pp, we got over 1000 power with 6 ppl
    thats coz I run a small server 10-20 ppl so more power is needed to actually have other towns around quikc enough to make it worthwhile.

    My other one and last thing I can think of that would be tottally needed at some point is cant claim beyond boundry of existing land or Dynmap regions support. Im sure if u talked to Dynamp crew they come up with a way to load faciton territory into dynmap some how.
     
  13. Offline

    Ar88rA

    I've been fooling around with an idea. I think it would be a cool addition to add a jail system to Factions. I mean, there are plenty of good jail plugins out there, but none are made to work with a plugin like this. Maybe you could set something up so that it would be like the Jail plugin (yes that is its name) but have it made so that faction leaders could only jail members of their own faction. I would donate to make this more appealing to you, but I have no money to donate. Anyways, hope you do it. Thanks.
     
  14. Offline

    ledhead900

    I disagree thats seems more like admin/staff tool then anything usefull to the purpose of this plugins.
     
  15. Offline

    SirPali

    Ironically, I am using note pad ++. I'll try some other program for editing.


    Edit: Tried again a few times, and this time it worked.
    Thanks :)
     
  16. Offline

    Braegh

    What about an option for inter-faction communication? Allowing allied factions to directly communicate with each other in a similar way to /f c.

    Also, a shortcut for quick-chatting to your faction rather than toggle it on/off along the lines of /f c <msg>?
     
  17. Offline

    XSaracen

    It'd be nice to have /f home as a permission.
     
  18. Offline

    GamerCorp

    Now I'm not sure if this has been asked and answered before, but can Admins assign a faction to a player?
     
  19. Offline

    jamoowns

    Quoting myself... How sad...
    But, I successfully managed to limit faction power, and added it to config. I did it a really noob way, but so far it's been failsafe and been working fine. If you're interested then send me a message, if not, then keep up the good work anyway :)!
     
  20. Offline

    Brettflan

    Thanks for the donation, I'll add this in the next release.

    Since you're asking for amounts, here you go, based on expected time involved.
    1. I expect I'll do this one regardless, so no worries about it.
    2. So... a stored flag for faction claimed chunks which disables monster spawning/targeting in that chunk, a command to set/toggle that flag, and a new permission in order to be able to use that command (with adminBypass permission further allowing the flag to be set anywhere)? The permission and command would be relatively simple, but storing the data would be a little more tricky. I'd probably do best to create another data file for that. Quite a bit of work. $50.
    3. $15.
    4. So after the first claim for the faction in any particular world, require further claims to be attached to an existing claim on at least one side? $15.
    5. If they're able to read JSON files, they could actually read the Factions data files directly. Otherwise, I could add in some functions for getting that data to the main class for them. It would indeed bear more discussion with them on what format would be useful to them.

    By the way, there was a recent CraftBukkit commit which should allow you to prevent fire from being punched out in your territory by players not in your faction:
    https://github.com/Bukkit/CraftBukkit/commit/0b892a71f8be66f2b708194b0023e5f95651d84b
    If you use a CraftBukkit build new enough to include that (844 or higher), you should be able to add FIRE to the "territoryProtectedMaterials" list and have it prevented.

    If you can, please send a pull request on GitHub (preferable), or just send me a message with the code. Assuming the code is decent enough, I'll add it.

    @Everyone else: not currently planned, sorry.
     
  21. Offline

    Inspyrd

    Yes I tried the /f who command but as you say it doesn't give individual power levels. this is especially helpful for faction admins on servers that set the power regeneration to be slower than the default setting in vanilla factions. after a raid has decimated a faction it needs to know the individual power of it's members to get back on it's feet quickly. too many -10 power members can mean the base can not be reclaimed for hours. in some cases it can mean the destruction of the faction completely especially if the leader is not on when it happens (it's happened me twice now). If i could distinguish which members are pulling the factions overall power into -ive they can be temporarily kicked until a new base can be re-established by faction builders while the soldiers come back up to 0 power and above.
     
  22. Offline

    sjoerdtim

    If i set in the config:
    "territoryDenyUseageMaterials": [
    "BUCKET",
    "LAVA_BUCKET",
    "WATER_BUCKET"

    (though without flint & steel)

    i can't use flint & steel in another persons territory ( "You can't destroy in the territory of [factionname]".)

    help?????
     
  23. Offline

    Brettflan

    True enough, it could be useful. I don't currently have plans for it though.

    Yeah, I'd considered removing that from the default "territoryDenyUseageMaterials" list for much the same reason. Flint&steel is blocked because Bukkit apparently considers it as you placing/building a block of fire.
    I suppose I could try making a special check for it so that it's not blocked by the build check. Might work out, might not.
     
  24. Offline

    hayhay89

    Is it possible to make it so people in the safezone cant attack people people in the a warzone?
     
  25. Offline

    sjoerdtim

    is it possible to let people configurate what blocks you can place/destroy and what not, like this:

    Territorydeniedplaceblocks: 1,2,3,4,5,6,7,8,etc.
    Territorydenieddestroyblocks:1,2,4,8,9,10,etc.

    Is that possible?

    And i've another idea:
    Can you make permissions a command (example. you may not leave a faction but may join and use /f home )
     
  26. Offline

    duhfux

    I'll give you $10 if you can make it so PvP can be disabled for non faction players.
     
  27. Offline

    Brettflan

    OK, I've succeeded in adding a special case for flint&steel so that the build check doesn't block it for placing fire, so it's only prevented if in the "territoryDenyUseageMaterials" list.

    Already handled in the upcoming release; if the attacker is standing in a safe zone, they can't hurt any other player (doesn't just check the person being attacked now).

    Possible but not planned.

    For clarification: an option which disables PvP damage to/from players who aren't currently in a faction, regardless of where they are (possible exception of war zones)?
     
  28. Offline

    Wahrheit

    @Brettflan is it possible for you to add a setting that would make warzones allow pvp between all users, same faction or not? We have FFA pvp competitions that are quite fun. Another zone type if necessary would work as well.
     
  29. Offline

    Brettflan

    Already added as a setting in the upcoming release, thanks to a request and donation from Magesblood.

    EDIT:
    In other news, I've just finished adding autoclaim commands for faction claims, safe zone claims, and war zone claims. As expected, it was a bit of a pain, but I have to admit it was worthwhile.
    It took a lot of changes along with a bit of a rewrite of how the claim command works, so there's potential for introducing new bugs, though I did go over the code with a fine-tooth comb a few times for any obvious ones. Here's hoping none got by me. :)
     
  30. Offline

    T4L_Goose

    I have a suggestion: Can you make a Config option to enable ALL protection for a faction's land when it has no members online? I have a server going, and one of the rules is that you cannot attack a faction's land (destructively) unless they have faction members online.

    This would make my life a lot easier if you could do it and I would really appreciate it.

    Also, you said something about Donations? Where would I donate? This plugin is the beating heart of my server, and I feel that I should show some love to the people behind this plugin. It's helped make a dream of mine into a reality.
     

Share This Page