[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

    vgamers

    Hi i've got a couple of quick questions:

    -Is it possible to allow pvp between players in a claimed land?
    -Is it possible to hide the notification from popping up when a member not in that faction enters the claimed land?

    Thanks :)
     
  2. Offline

    matthias4

    The people in my server don't need a invite to join a faction.
    But i want that they need one.
    Can you help me please?
     
  3. Offline

    Specops343

    @Brettflan This is the full start-up log: here

    Edit: Never mind, it seems before the update we were running such an old version of factions, that it didn't require the gson.jar. Just added that in, and it worked like a charm. Thanks!
     
  4. Offline

    Deathfromace

    @Brettflan
    Seems people can now open doors on other players territory.

    Edit: Actually seems to only be happening on one guilds land...and can't explain why.
    Maybe a MC chunk issue that will be fixed on a restart.
     
  5. Offline

    Zidkon

    I actually just added some lines to Conf and to FactionsPlayersListener, and I don't think it cause any conflict with other features.
    I think would be a usefull idea for some people, so if you like the idea and the way I implement the code just simply add as yours, I just simply changed it because a friend asked me if it would be possible and I through it was a good idea to have.

    So I leave the compressed with the .java's I changed and the conf.json file like example, inside there is a README that explains the changes I did, so feel free to implement if like and change as way you want it.
     

    Attached Files:

  6. Offline

    jonassm

    @MassiveCraft
    I also post this on LevelCraft.
    When i chat now ( im in 100 mining, ( levelcraft )) my chat looks like this.
    15:41:55 [INFO] º**Vikingerne 6[M]<jonassm> Og det kan Klanner ikke finde ud af
    15:42:00 [INFO] <TMNT carolinejelle> Noller
    <jonassm> is me.
    Carolinejelle is one which aint level 100 in anything.
    See the problem here?
     
  7. Offline

    wachnlurn

    anyone know what this is?
    Code:
    [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)
    2011-08-18 14:04:04 [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)
     
  8. Offline

    1994mat

    There should be admin power for opening chests on another faction.
     
  9. Offline

    Deathfromace

    There is if you read the commands. Its /f bypass
     
  10. Offline

    NazzyDragon

    About the new iConomy update with this plugin. Does it cost money AND power to claim land with it enabled, or just $? Or both? I'm confused.
     
  11. Offline

    nismo

    Can you add all the necessary Java Build Library's? Or at least name them?

    Thanks.
     
  12. Offline

    Spoga


    18.08 15:26:52 [Server] INFO Server permissions file permissions.yml is empty, ignoring it
    18.08 15:26:52 [Server] SEVERE [Factions v1.4.5] Disabling myself as ./lib/gson.jar is missing from the root Minecraft server folder.
    18.08 15:26:52 [Server] SEVERE [JAR-LOADER] This file does not exist: ./lib/gson.jar
    18.08 15:26:52 [Server] INFO [Factions v1.4.5] === ENABLE START ===

    it says nothing else about factions
     
  13. Offline

    wheals

    I can get factions to enable, kinda. Whenever you type any /f "command" you get an "Factions Command Unknown" error. Obviously the problem is right there, I am programming dumb and have no idea what I am looking at.

    This is my server log error whenever factions tries to load:
    Code:
     2011-08-18 21:07:27 [INFO] [Factions v1.4.5] === ENABLE START ===
    2011-08-18 21:07:27 [SEVERE] Error occurred while enabling Factions v1.4.5 (Is it up to date?): com/google/gson/reflect/TypeToken
    java.lang.NoClassDefFoundError: com/google/gson/reflect/TypeToken
    	at java.lang.ClassLoader.defineClass1(Native Method)
    	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    	at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:219)
    	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:32)
    	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    	at com.massivecraft.factions.Factions.onEnable(Factions.java:84)
    	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:885)
    	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
    	at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:178)
    	at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161)
    	at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:452)
    	at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
    	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.ClassNotFoundException: com.google.gson.reflect.TypeToken
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    	... 29 more
    2011-08-18 21:07:27 [INFO] Server permissions file permissions.yml is empty, ignoring it
    
     
  14. Offline

    kralv

    When a player that doesn't have permission tries to build or destroy in a safe zone it comes up with a message saying "You cannot build in a safe-zone". Is there any way to turn off this message but still be a safe zone?
     
  15. Offline

    Brettflan

    1. Have one of the factions declare the other as enemy.
    2. No, since that's needed to indicate who controls that land.

    Use /f open (covered in the user guide, and also covered in-game in the command list). You can also change the setting "newFactionsDefaultOpen" in conf.json.


    If it persists, please send me a copy of your Factions data files (zipped up and uploaded to Mediafire or somewhere) along with the XYZ coordinates of where the land in question is.

    I'd have preferred a pull request on GitHub, but that will do. I'll look over it when I get back to working on Factions.

    Play around with the chat configuration, as covered in the user guide's configuration page.

    You have a null value in "territoryNeutralDenyCommands" in your conf.json file, somehow. The next release of Factions will be able to handle that without an error.

    The money costs are in addition to any other existing requirements.

    They're all in the /lib/ folder in the source on GitHub.

    Read the first post, specifically the "How To Install" section.

    Are you sure you have the correct gson.jar file in your /lib/ folder? Do you have any other plugins which might be using a separate or built-in copy of GSON?

    Turn off the message, or turn off the actual protection? If the former, no, if the latter, that can be set in conf.json.
     
  16. Offline

    OnurMert

    My friends server use this plugin. But i have some problems about plugin. In my faction, i can read faction only chat normally. But plugin shows me one of other faction's faction-only chat. It just seeing on my screen. Just with one faction. Example : our faction is A, other factions B,C,D. I don't know why but i can see A's and C's faction-only chat. I am n't admin or something. Is there fix for that?
     
  17. Offline

    lauris3722

    Suggestion: Minimal faction power. Let's say, i set minimal faction power to -20. When faction gets under -20, faction deletes automacilly.
     
  18. Offline

    Yahtze

    @Brettflan

    These errors always seem to appear right before a Read Time Out:

    Code:
    2011-08-19 11:46:24 [SEVERE] Could not pass event BLOCK_PISTON_EXTEND to Factions
    java.lang.ClassCastException: org.bukkit.material.MaterialData cannot be cast to org.bukkit.material.PistonBaseMaterial
        at org.bukkit.event.block.BlockPistonEvent.getDirection(BlockPistonEvent.java:41)
        at com.massivecraft.factions.listeners.FactionsBlockListener.onBlockPistonExtend(FactionsBlockListener.java:73)
        at org.bukkit.plugin.java.JavaPluginLoader$43.execute(JavaPluginLoader.java:540)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.BlockPiston.g(BlockPiston.java:70)
        at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:47)
        at net.minecraft.server.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:438)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:437)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:438)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:437)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:439)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:435)
        at net.minecraft.server.World.update(World.java:407)
        at net.minecraft.server.World.setTypeIdAndData(World.java:391)
        at net.minecraft.server.BlockRedstoneTorch.a(BlockRedstoneTorch.java:142)
        at net.minecraft.server.World.j(World.java:1966)
        at net.minecraft.server.World.doTick(World.java:1737)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:444)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-19 11:46:24 [SEVERE] Could not pass event BLOCK_PISTON_EXTEND to Factions
    java.lang.ClassCastException: org.bukkit.material.MaterialData cannot be cast to org.bukkit.material.PistonBaseMaterial
        at org.bukkit.event.block.BlockPistonEvent.getDirection(BlockPistonEvent.java:41)
        at com.massivecraft.factions.listeners.FactionsBlockListener.onBlockPistonExtend(FactionsBlockListener.java:73)
        at org.bukkit.plugin.java.JavaPluginLoader$43.execute(JavaPluginLoader.java:540)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.BlockPiston.g(BlockPiston.java:70)
        at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:47)
        at net.minecraft.server.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:437)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:438)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:435)
        at net.minecraft.server.World.update(World.java:407)
        at net.minecraft.server.World.setTypeIdAndData(World.java:391)
        at net.minecraft.server.BlockRedstoneTorch.a(BlockRedstoneTorch.java:142)
        at net.minecraft.server.World.j(World.java:1966)
        at net.minecraft.server.World.doTick(World.java:1737)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:444)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  19. Offline

    Brettflan

    That should be thoroughly impossible within Factions itself; faction chat messages are sent only to members of that faction, no exceptions.
    That being the case, perhaps you have another plugin which is altering chat messages, and which is un-cancelling the chat messages in question (naughty, naughty)? HeroChat, iChat, something else like that?

    I don't much see the point. Their faction at that time probably would be better off disbanding, but why not leave it up to them?

    You're either running an old version of CraftBukkit (should be on RB 1060 or at least RB 1000), or are running into an infrequent bug in Bukkit. I noticed an error report along those lines over on Leaky Bukkit.
     
  20. Offline

    embty

    Getting this error which probably causes server restarts bukkit 1060
    Code:
    2011-08-20 01:20:02 [SEVERE] Could not pass event BLOCK_PISTON_EXTEND to Factions
    java.lang.ClassCastException: org.bukkit.material.MaterialData cannot be cast to org.bukkit.material.PistonBaseMaterial
        at org.bukkit.event.block.BlockPistonEvent.getDirection(BlockPistonEvent.java:41)
        at com.massivecraft.factions.listeners.FactionsBlockListener.onBlockPistonExtend(FactionsBlockListener.java:73)
        at org.bukkit.plugin.java.JavaPluginLoader$43.execute(JavaPluginLoader.java:540)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.BlockPiston.g(BlockPiston.java:70)
        at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:47)
        at net.minecraft.server.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:439)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:434)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:434)
        at net.minecraft.server.World.update(World.java:407)
        at net.minecraft.server.World.setTypeIdAndData(World.java:391)
        at net.minecraft.server.BlockDiode.a(SourceFile:69)
        at net.minecraft.server.World.a(World.java:1997)
        at net.minecraft.server.World.doTick(World.java:1736)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:444)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  21. Offline

    Brettflan

    Read my answer to Yahtze at the end of the post just above yours.


    As a heads up, I'll probably be releasing an update in the next couple of days.

    I've added in some Spout functionality and it seems to be working fine. Of course, it will require players to be running the Spout client in order to actually see the functionality; otherwise, they just won't see those features. Also of course, you'll need to be running the Spout plugin on your server as well.
    Anyway, an example screenshot. Here we see Player, who is in the enemy faction "DeadBoys". His title of "BaDaSs" is shown, as is his admin status (the "**" and the cape, which is red due to him being in an enemy faction).
    [​IMG]
    I then granted his faction peaceful status, so his faction admin cape changed to white:
    [​IMG]

    Cape patterns are subject to change. If somebody fancies themselves an artist and thinks they can come up with 5 nice looking colored capes for each faction status (member = green, ally = purple, neutral = gray, peaceful = white, enemy = red), feel free to try your hand and I might include them as the official Factions capes. Here is what I've been fiddling with.
     
  22. Offline

    T4L_Goose

    Looks great Brett, keep up the good work!
     
  23. Offline

    Theborg

    Hmm, I know it would be quite a rework but is there any mySQL version of this in the works?
     
  24. Offline

    sirgarbage

    I downloaded this plugin, hoping to make my server a factions server. However, I kept getting this error... :(
    Any ideas??
     
  25. Offline

    embty

    Im not sure where but brett mentioned that mysql is not planned at all :p
     
  26. Offline

    center66ljk

    I installed permissions recently and now my chat does not show factions before the persons name and you can break other factions land PLEASE help.
     
  27. Offline

    Dothackking

    Can I set this so that it does not spawn you at your /f home and instead that is just a /home?
     
  28. Offline

    Exidous

    Can admins grant more power to factions to claim more land if they run out?
     
  29. Offline

    Brettflan

    You need at least CraftBukkit RB 1000 for piston support, though 1060 is out now and you should probably use it.

    When you start up the server, what does the Factions startup info look like? It should be towards the top of your server.log file.

    This plugin does not provide a /home command; you'll need to turn to whatever plugin you are using for that.

    Not currently (beyond adjusting the max power for everyone), but the possibility to set individual permanent power levels for any faction might be added eventually.
     
  30. Offline

    Dothackking

    By /home I meant having /f home act as a /home and not a /spawn (I don't want them respawning there, just be able to tp there)
     

Share This Page