[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

    you'll need to elaborate. Maybe hooks in the main class like this?
    Code:
    Set<String> getFactionTags() {}
    Set<String> getPlayersInFaction(String factionTag) {}
    EDIT: changed Set<Player> to Set<String> above, since it's quicker to get on the Factions end of things and the Player can easily be looked up if actually needed (which is what Factions would be doing itself).

    Yeah, I got a report of that, it's a bug. Faction admins are supposed to always bypass ownership protection. It's fixed in the next version, which I expect to release later today.
     
  2. Offline

    feildmaster

    Yes, that would indeed work. But maybe search by "player?" Let me think it through real quick...

    Yeah, by tag would work if that's how you store factions. I'll just make my code get the players tag first.

    Thanks, by the way. ^^
     
  3. Offline

    Belladonna

    can you please add an option for monsters in safe zone and to disable explosions in safe zone.

    So can have monsters and fun but not worry about creepers destroying peoples artwork.
     
  4. Offline

    oglop

    please read the first post (if read, then read again ;) )
     
  5. Offline

    rslink

    @Brettflan

    If you are adding spout support, can you add a Gui options editor? Like this Towny plugin.
     
  6. Offline

    oglop

    I was just thinking about TNT and griefers problem and maybe I found good way
    what abou if implementations some ideas from minig TNT plugin
    Allows height restrictions for TNT.

    to set height restriction for
    wilderness y=60 (or other variable value of course)
    territory y= -1 (for no restriction)
     
  7. Offline

    Brettflan

    Not currently planned, solely down to lack of time and glut of other things I'd like to get done. You might consider using war zones instead of safe zones for that purpose. Might not be a perfect fit, but it's a thought.

    As many options as we have, that doesn't seem very feasible. Mind you, if someone else wanted to do all the necessary work, the Factions source is of course available and pull requests are accepted. ;)

    I've thought of it in passing, but in my mind it wouldn't really fit in with the way Factions considers claims as bedrock to sky. So, not planned.
     
  8. Offline

    xGcoinx

    I've got a bit of a problem! This happens whenever somebody uses a faction command.


    Code:
    2011-08-23 17:45:20 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'f' in plugin Factions v1.4.5
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        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:89)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.RangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at com.massivecraft.factions.Factions.handleCommand(Factions.java:450)
        at com.massivecraft.factions.Factions.onCommand(Factions.java:444)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
     
  9. Offline

    Windwaker

    When can we expect an update for [1060] because Factions doesn't load on 1060 for me and shows up Red in the plugins menu meaning it didn't load. There is no error though.
     
  10. Offline

    Brettflan

    Try 1.4.6. Report the updated error message if it persists.

    Factions 1.4.5 works fine on 1060, though 1.4.6 is now released. If you continue to have problems, there WILL be some indication of the problem in the Factions startup log info. I'll need a copy of that, which should be near the top of your server.log.

    And:
     
  11. Offline

    feildmaster

    @Brettflan : Thank you brett. ^^

    I will definitely be using those new functions.
     
  12. Offline

    Belladonna

    not sure what you want me to look at and 1.4.6 wasnt posted when i posted


    and if your meaning for me to look at peaceful factions that doesnt really work with what we want to do because i dont see how one person can have enough power to safe alot of area. sorry im tired if my sentence is bleh
     
  13. Offline

    xGcoinx

    Still getting this error....Wanna join the server and see for your self?
     
  14. Offline

    BioRage

    Oh snap, good job!

    Quick question, if you use the Spout plugin that offer's individuals custom capes, will it conflict with Factions Capes?
     
  15. Offline

    Brettflan

    No. As I said:
    The indicated source line numbers will have changed, at the least, and that's what I'd need to check on.

    Factions will probably end up effectively overriding the capes set by the other plugin, since it sets them individually per viewer instead of globally. If you therefore want to disable the faction leader capes, the options are there.
     
    BioRage likes this.
  16. Offline

    xGcoinx

    Where do I report it to?
     
  17. Offline

    Rogueleader89

    error on trying to create a faction in 1.4.6, the faction is created with nobody in it, the user gets a message about an internal error and the following errors appear on console:
    Show Spoiler

    [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'f' in plugin Factions v1.4.6
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
    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:89)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:436)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.UnsupportedOperationException: Invalid URL
    at org.getspout.spout.player.SimpleAppearanceManager.checkUrl(SimpleAppearanceManager.java:291)
    at org.getspout.spout.player.SimpleAppearanceManager.setPlayerCloak(SimpleAppearanceManager.java:168)
    at com.massivecraft.factions.SpoutFeatures.updateSingle(SpoutFeatures.java:172)
    at com.massivecraft.factions.SpoutFeatures.updateAppearances(SpoutFeatures.java:84)
    at com.massivecraft.factions.FPlayer.setRole(FPlayer.java:134)
    at com.massivecraft.factions.commands.FCommandCreate.perform(FCommandCreate.java:62)
    at com.massivecraft.factions.commands.FBaseCommand.execute(FBaseCommand.java:65)
    at com.massivecraft.factions.Factions.handleCommand(Factions.java:474)
    at com.massivecraft.factions.Factions.onCommand(Factions.java:459)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)

    Show Spoiler

    [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'f' in plugin Factions v1.4.6
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:344)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:489)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:468)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.UnsupportedOperationException: Invalid URL
    at org.getspout.spout.player.SimpleAppearanceManager.checkUrl(SimpleAppearanceManager.java:291)
    at org.getspout.spout.player.SimpleAppearanceManager.setPlayerCloak(SimpleAppearanceManager.java:168)
    at com.massivecraft.factions.SpoutFeatures.updateSingle(SpoutFeatures.java:172)
    at com.massivecraft.factions.SpoutFeatures.updateAppearances(SpoutFeatures.java:66)
    at com.massivecraft.factions.commands.FCommandDisband.perform(FCommandDisband.java:47)
    at com.massivecraft.factions.commands.FBaseCommand.execute(FBaseCommand.java:65)
    at com.massivecraft.factions.Factions.handleCommand(Factions.java:474)
    at com.massivecraft.factions.Factions.onCommand(Factions.java:459)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 6 more
     
  18. Offline

    xGcoinx

    Thats what happening to me. When i type "/f" it says "An Internal Error Orrured Whle Blah Blah Blah" and when I type something like "/f create" It just says "Unknown Faction Command"
     
  19. Offline

    Brettflan

    Here, where else?

    Did you change any of the cape URLs ("capeAlly", "capeEnemy", etc.)? It's indicating one of those is not valid. If you didn't change those, you can at least stop the error by running these commands to disable capes for now:
    /f config spoutFactionAdminCapes false
    /f config spoutFactionModeratorCapes false
     
  20. Offline

    M1sT3rM4n

    Good job on implementing Spout features! This 'ought to force me to upgrade to the Spout server client.

    By the way, are you focusing more on combat/warfare in v2.0?
     
  21. Offline

    Deathfromace

    Last I read he is not taking a huge part in 2.0 do to lack of time. If you go to the link posted on the OP you can read the draft for 2.0 and see what the general idea for it is.

    Also thanks for the update...as always great features added.
     
  22. Offline

    xGcoinx

    ****************BUG REPORT*****************************

    For some reason the pluggin wont install correctly. I'll list the bugs below.

    [1] It dosent create a folder for me.
    [2] It says "Internal Server Error" when you type "/f"
    [3] It says "Unknown Faction Command" when you type "/f help" or anything that has something after the "/f"
     
  23. Offline

    BioRage

  24. Offline

    Brettflan

    Hmm, checking through the related code again, I think I see what's causing that error for you guys. Hang on and I'll release a bugfix update to hopefully take care of it.
     
  25. Offline

    xGcoinx

    Thank you. Will we get it tonight? I sort of need it as the server advertises "Factions"
     
  26. Offline

    Brettflan

     
  27. Offline

    BioRage

    You the man!
     
  28. Offline

    xGcoinx

    Still not working...Its doing the exact same things as reported in my "Bug Report"
     
  29. Offline

    T4L_Goose

    Running into this bug again:

    After exiting a Nether Portal, any doors, chests, etc in chunks that load when you exit the portal aren't protected by claimed faction land. You still can't destroy blocks, but you can place blocks that turn to a random block.

    This seems to be the same problem I was having way back in 1.6.

    There are no errors in the log either.

    Here is the exact experience from my friend who this happened to: He exited the nether and ended up coming out of a portal next to a neutral faction's base. He was able to open their doors, open their chests and take things out and put things in, place blocks that would turn into a random block, but he was not able to break or edit their land otherwise. This effect went away when he logged off and then back in.

    There isn't any other plugins I have that would (to my knowledge) cause something like this, and all the plugins I had back in 1.6 (when I ran into the same exact problem) were completely different than the ones I have now (excluding permissions and iConomy).
     
  30. Offline

    Brettflan

    Please, please, please (as I've asked before) provide the latest error that it sends to your console and server log. Without that, there's no telling what it might be.

    @T4L_Goose That sounds pretty bizarre, indeed.
    Factions just monitors the appropriate events triggered by Bukkit (block breaking, item usage, so forth), and determines whether it should cancel the event based on the event info provided by Bukkit. It does not alter the events in any way beyond potentially cancelling them. Based on that, I don't see how Factions can be causing the problems you're describing.
     

Share This Page