[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

    Brettflan

    @Zach667711
    Finally got around to testing this using PermissionsBukkit, and realized you got the node wrong. It's "commandDisable", not "disableCommand". Sure enough, when I tested it with the correct node it worked perfectly.

    Use War Zones with the "warZoneFriendlyFire" option set, or if it's a separate world you can add that world to "worldsIgnorePvP".

    That message is given when the specified faction is not normal, i.e. wilderness/no_faction, safe zone, or war zone. You haven't manually modified factions.json and changed faction IDs around, have you? If not, what is the faction tag of the faction in question?
    After skimming through the related code, another possibility: do you have a player who has been on the server whose name is similar to faction's tag (i.e. faction tag "dead" and player name "deadly_archer")?

    A lot of code depends on the player's actual name which is stored in the FPlayer data, and the chat name handling is currently tied into that. To change it so that it uses their display name would take careful recoding to keep from adding more processing overhead (thus potential lag).
     
  2. Offline

    Darcion

    spout i mean sry, is the new bukkitcontrib, you can use lots of new stuff, maybe a bunch of skins that all clients with this modification automatically loads.

    or capes with your banner or tag.
     
  3. Offline

    steffono3

    I installed this plugin, and had to uninstall it, because it doubles everyone's text in chat! Please help me, I have seen no other posts regarding this, so I imagine it is just my luck to be having this problem.
     
  4. Offline

    Darcion

    which chatplugin do you use?
     
  5. Offline

    Zaila

    Hey and thanks for your response.

    No, i have not changed around in any configuration. Actually, yesterday when the problem arised, it was the first time i've checked into all files to see if it was possible to fix it that way, nothing was changed though.

    The faction is called AR. We discovered it was possible to invite players if they completly changed name to anything else. I currently have no idea if there is any member with "ar" in their name which is in the faction. I've also noticed, when using "/f show AR", it didn't give back any result in regard of the faction in question.
     
  6. Offline

    Thequickthinkin

    I have 2 factions (Creed and Nitehood) and i want to neutrals to see the Creed to be blue and Nitehood to be green, in the tag so it would say [Creed] vvmattozzvv: test
     
  7. Offline

    steffono3

    I don't believe we are using any sort of chat plugin, but I will check with my friend who runs the server (I recommend plugins to him).
     
  8. Offline

    Sassafrass

    I have a request. Could you possibly make it so that minecarts cannot be destroyed in safezones? Also, I have denied stone pressure plates in factions but it spams the message everytime someone stands on one. Can you make it not spam for pressure plates?
     
  9. Offline

    im1tta

    Hello, sorry for asking but I managed to make the faction plugin work for my server I understand the config mostly but the 1 thing I cant figure out is how to give the admin of the server '' me '' unlimited claim land option ? I get stuck with a 10 / 10 if I used all 10 of them it says cant claim anymore now i went to:
    my server folder / plugins / Factions / players.json... I found my name in there with the ''power'':10.0, when I tried to change that to:
    "**",
    
    and I started my server again I get a shitload of errors and the factions didnt seem to work anymore is it possible for me to give myself a unlimited supply of faction claims so I can claim all the land of the big castle I made ?
    
    Thanks in advance.
     
  10. Offline

    formaldehyd

    Thanks for your answer.
    At your side i've read the following:

    • “chatTagFormat”: “%s§f “
      The %s will be replaced with the tag. The §f means white and then there is a space.
    • “factionChatFormat”: “§a%s§f %s”
    So I changed it in my config file, but still the same issue. Members who claim a new faction can't chat anymore they can only write PMs with /msg
    Is it possible that Essentials causes this issue?

    Server log: http://pastebin.com/qthaUKg8


    greets form
     
  11. Offline

    T4L_Goose

    I love the ownership thing. Now, can you make it so you can also make the owner of something someone who isn't in your faction? That way, it's still your land, but they can build on it. This would be awesome for shops and such in trade cities.
     
  12. Offline

    Gbear

    http://imageshack.us/f/508/unledyte.png/

    Hi, may i know how to fix this?
    The picture tells a thousand words.

    Incase you don't,
    My friend created a faction named OMG,
    but the tags have a f OMG 4?

    Also, when we just type 'f' then press enter, the factions help list appeared.
    How do i fix this?
     
  13. Offline

    Omegahhh

    I've used factions before on a home-hosted bukkit server and it works. Now when I tried to use factions with my servercraft.co server, it won't create a 'Factions' folder with the needed config files in it. When I manually create a 'Factions' folder and upload the config files, it won't load the files. Whenever I try a command by Factions it says: 'Unknown faction command "my command". Try /f help'
    Even when I try /f help I get this error. When I start the server, the console says:
    "Factions: v1.4.4] === ENABLE START ==="
    Normally after this it starts loading the config files, and if there are none, it creates them.
    But the only factions-related thing in my console is this 'enable start' line, after that it loads other plugins.

    When I do '/plugins' it says factions is installed.
    How can I get it to work?

    And yes, I did install the 'gson.jar' file in my lib folder.

    Even if I disable all other plugins, the factions plugin won't work.

    My server is hosted by servercraft.co

    Current Other Plugins:
    CraftBookCommon
    CraftBookMechanisms
    Essentials 2.5.6
    EssentialsChat 2.5.6
    Permissions 2.7.2
    GroupManager (essentialsgroupbridge+essentialsgroupmanager)
    EssentialsSpawn 2.5.6
    HeroicDeath 1.8.2.157
    LocalShops 3.1.1
    Lockette 1.3.8
    Lottery 0.5.0
    MultiVerse 1.7.2
    Stargate 0.5.0
    WorldEdit 4.6
    WorldGuard "5.1.1"
    iConomy 5.01
     
  14. Offline

    Agmanotis

    Will you be implementing a feature to prevent faction spawn camping? Perhaps a respawn invulnerability period? I have an issue in my server where stronger factions would mercilessly kill off weaker factions by trapping their victims in their own faction spawn, killing them over and over and over.
     
  15. Offline

    Brettflan

    I'll probably look into it at some point; I would like to add a cape feature that displayed different colored capes to each player based on faction relation, for example red for enemies, green for friendlies, gray for neutral, black for factionless, and so forth. Along with adding each player's faction tag over their head. Some of that may be feasible, some of it not; I think for updating name tags (for adding faction tag) and capes it might currently require reconnecting to the server.
    I am impressed that the Spout client mod is a standalone JAR which you can simply run and have it just work.

    Hmm. I found that the faction tag lookup code was first checking for player name matches and only then checking for actual faction tag matches. I've switched that around, so that issue might be fixed in the next release.

    Coloring is done only based on relation, custom colors are not currently possible or planned.

    Some plugin is apparently ignoring that the chat event has been cancelled by Factions (since individual messages need to be sent out to handle relational faction tag coloring) and that plugin is still sending out messages, or it is un-cancelling the chat messages.

    Special handling for specific cases like that isn't too likely to be added, but... I guess there's always a remote possibility.

    @im1tta There is currently no unlimited claiming/power option other than safe zones and war zones. That conf.json change you made would indeed cause a nasty error; sticking a text string in quotation marks in place of a number is generally a bad idea.

    Your link was messed up; fixed it in the quote here. I wouldn't expect Essentials to be causing it. Anyway, the error is indicating you have a stray "%" in the format string. You should really only have "%s" in there as a combination, no other "%" characters followed by anything else. Run /f save and double-check the conf.json file to make sure it's still showing a correct "chatTagFormat" value.

    Possibly. That would however add a bit further overhead to the various code which checks to see if a person is allowed to build/destroy/interact in a claimed area, which is why I didn't do so already.

    You're currently defaulting to “chatTagInsertIndex”, which you should play around with and try setting to different values. Read the manual for more info.

    I've never heard of that happening and have no idea offhand why it might, other than something being wrong with your server setup (particularly what restrictions they might have in place for your file environment).

    I don't have any direct plans at the moment for addressing that sort of thing.
     
  16. Offline

    Bogden

    Currently, with claimsMustBeConnected set to true, you are able to claim territory in a straight line like so:

    Code:
    -----------
    --///////--
    -----------
    And then unclaim the middle portion to create two disconnected territories, like so:

    Code:
    -----------
    --/-----/--
    -----------
    This allows factions to split off a chunk of their territory and begin taking over other factions with it. I think that this is an interesting mechanic, but is it intended? It seems like an exploit to me. Any plans to change it?
     
  17. Offline

    Mausterio

    I cant use any version after 1.4 Due to needing Permissions which im having trouble adding because it removes the names for the factions...
     
  18. Offline

    Brettflan

    There are many ways that claimsMustBeConnected could be improved. Since I don't use that feature myself, though, and only added it to appease people clamoring for it, I don't have any current plans for changes or additions to it.

    More details needed, that didn't make a lot of sense to me.

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

    omnija

    just a quick question, should i have pvp enabled or disabled, so that the factions of enemy/ally work?
     
  20. Offline

    Darcion

    wrong link to latest factions.jar, we have to load the zip file for latest build
     
  21. Offline

    Gbear

    Code:
    20:55:00 [SEVERE] Could not pass event PLAYER_MOVE to Factions
    java.lang.NullPointerException
            at com.massivecraft.factions.FLocation.<init>(FLocation.java:40)
            at com.massivecraft.factions.FLocation.<init>(FLocation.java:44)
            at com.massivecraft.factions.FPlayer.sendFactionHereMessage(FPlayer.java
    :425)
            at com.massivecraft.factions.listeners.FactionsPlayerListener.onPlayerMo
    ve(FactionsPlayerListener.java:157)
            at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.ja
    va:286)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:164)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    20:55:04 [INFO] rangamate [/5.19.191.250:50085] logged in with entity id 16319 a
    t ([world] 46.29030450462915, 67.30543845175121, 163.64318208073803)
    20:55:33 [INFO] [CAuth] Players saved.
    20:55:33 [SEVERE] Could not pass event PLAYER_MOVE to Factions
    java.lang.NullPointerException
            at com.massivecraft.factions.FLocation.<init>(FLocation.java:40)
            at com.massivecraft.factions.FLocation.<init>(FLocation.java:44)
            at com.massivecraft.factions.FPlayer.sendFactionHereMessage(FPlayer.java
    :425)
            at com.massivecraft.factions.listeners.FactionsPlayerListener.onPlayerMo
    ve(FactionsPlayerListener.java:157)
            at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.ja
    va:286)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:164)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Whats this?
     
  22. Offline

    Mausterio

    Sorry about not native english. :/ What i was trying to say is i cant add permissions to it because every permission Plugin i try (even the built in one) Removes the faction name before a username.
     
  23. Offline

    Brettflan

    Wait, what are you trying to do? I don't understand, unless you're asking if it's possible to enable ally/enemy status for peaceful factions. If that's what you're asking, there is no option to that. The desired relations are still stored and can be updated using /f enemy, /f ally, and /f neutral as before, they just don't take effect while a faction is set as peaceful.
    If that's what you're wanting, please elaborate on the reasons you want it.

    Right, not sure what happened there. I just tried uploading it 3 more times, deleting the old JAR on GitHub first and confirming that the JAR file I uploaded was indeed 1.4.5, and it somehow was still 1.4.4 still there each time. Yet restarting my browser after that and trying it again made it work. Go figure.

    Based on the error, somehow that player reference was null (not set). I don't recall having seen that happen before. Is it happening associated with some specific player? If so, what is their name?

    Permissions plugins should not be doing anything to affect faction tags. Are you sure you have the correct faction tag settings? You might check the user guide about chat tag configuration.
     
  24. Offline

    Flying_Banna

    Hey Guys I Have Some Weird Chat Thing Which Appears When I Installed Factions Plugin (Which Is An Amazing Plugin Btw). Here's What It Says a** [Faction Name] &7[Moderator] Name. I Use Essentials Chat And Am Wondering How To Fix This. If you Know How I Would Be Very Great full. Thanks
     
  25. Offline

    Darcion

    2011-08-05 19:44:45 [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to Factions java.lang.NullPointerException at com.massivecraft.factions.listeners.FactionsPlayerListener.preventCommand(FactionsPlayerListener.java:452) at com.massivecraft.factions.listeners.FactionsPlayerListener.onPlayerCommandPreprocess(FactionsPlayerListener.java:406) at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:272) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:706) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670) at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85) at net.minecraft.server.NetworkListenThread.a(SourceFile:105) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361) at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    and i wanted to know if i can protect materials with the IDs or you build in exception for materials, so that you can build this on protected ground

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

    Brettflan

    See:


    Can you check your conf.json file and tell me what the section for "territoryEnemyDenyCommands" looks like? Have you done anything to modify that setting, and if so, what? Apparently it has a null string in there somehow, which I suppose I should add a check in the code for.

    Maybe my brain is just not working right lately, but I'm having trouble understanding several recent questions like this one. Please try to make your question clearer so that I can understand what you are asking.
     
  27. Offline

    BioRage

    Peaceful territory is the same as /f safe, minus it being an admin vs player basis?
     
  28. Offline

    Cal27

    Thank you very much! +10 Internets to you
     
  29. Offline

    Bogden

    Suggestion: Customizing Pain Options

    Do you think it would be feasible to add another config which would allow us to further customize how much damage is taken upon placement/destruction of blocks? For instance, it would be nice to make it so that placing obsidian or TNT in an enemy faction's territory inflicts 10-20 damage.
     
  30. Offline

    omnija

    oh ok, so if i have pvp disabled through the server config, it will still allow pvp against factions?
     

Share This Page