[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

    ledhead900

    hmm do you have a file located in rootofserver/lib/gson.jar ?
     
  2. Offline

    Bogden


    Yes, I thought that's where we were supposed to put it for factions ._.



    Edit: Although, I just noticed something. Hungry works with or without gson.jar in that folder, as long as Factions is disabled.
     
  3. Offline

    embty

    Do /f saveall and change the config then /f reload u dont ahve to /reload
     
  4. Offline

    FuturaEX

    ok, so now i'm using permissions, but when the non-op players on my server try to create a faction it says:

    ''an internal error ocurred while trying to perfor this command'' or something like that.. whats wrong??


    EDIT:
    permissions did't work but it's working fine now so nvm the question above, VERY NICE plug in btw ('';)
     
  5. Offline

    Chuckster

    @Brettflan
    I am using permissions 3.5 which i tried 3.6 but it didnt work either and it conflicted with mcmmo so what should i do to fix the fact that permissions is busted for me on this plugin?
     
  6. Offline

    shadydeath999

    @MassiveCraft : request: faction delete command for admin of server incase of inerpropiate faction name/factions
     
  7. Offline

    CGA1123

    How would I change the desc for the Safe Zone?? Thanks in Advance!
     
  8. Offline

    Brettflan

    Thanks, I'll review it for inclusion.

    Neutrals should be mostly at their mercy, but as far as I'm concerned they shouldn't be made completely defenseless (which a declared enemy wouldn't be). Besides, all a person would have to do to get around such a restriction would be to stand just outside their territory first before declaring them as enemy. I'm not averse to adding an option for it, though; we'll see.

    Open/close is one command, with no distinction in the code for which is which. So that cost covers both.

    Not sure. I haven't even actually tried using the built-in Bukkit permission system myself, just added support for it. I suppose I ought to get around to actually testing it.

    I've never had any purpose to ever use the /reload command on any plugin, so I couldn't say for sure what it might do. You might try what ledhead900 suggested and use /f save first to see if that makes it work better.

    There are many many different plugins which provide a "group" mechanic; I don't have any plans to make Factions do anything particular with any of them.

    If you have any permissions plugin installed, it will be used. If you don't have any installed, the default Bukkit permission system will be used and all users should be granted "factions.participate", "factions.create", and "factions.viewAnyPower", while people designated as Ops should have all permissions.

    Read the user guide (or RTFM, if you like :p).

    Well, that definitely sucks. Blame Olof, I warned him that switching GSON back to external was likely to cause that sort of problem, just such problems being why I converted it to internal in the first place way back when. There then, finger firmly pointed in his direction. ;)
    One solution would probably be for the Hungry plugin author to modify his plugin to use the GSON library in the same location as Factions and Vampires plugins both use, <MCServer>\lib\gson.jar. That might do the trick. Otherwise... well, I've poked Olof, maybe he'll have the desire to look into it further and come up with a better solution than to either ignore it or just embed a custom GSON library pacakge back into the Factions JAR like it was until recently.

    If you get an error like that, please please please please provide the stack trace (the full multi-line error report). That almost always clearly indicates exactly what line of what source file and in which plugin the error occurred at, along with what particular type of error it was. If you get any kind of error like that, it is usually something that needs to be fixed (bug, edge case, oversight, call it what you like).

    OK, I'll try testing with both of those to see if I can reproduce your problem.

    /f disband [faction tag]

    You'll need to edit the factions.json file in order to do that. Be absolutely sure to back the file up before editing it, though, and make sure when you next start the server up that it doesn't spit out any error messages.
     
  9. Offline

    FuturaEX

    it didn't work when i didn't have permissions installed, but as soon as i got permissions working it worked perfectly fine :D (really glad it works now cause it's an awesome plug in :) )

    i got an error ( i think )


    03:04:14 [SEVERE] Error occurred while enabling Factions v1.4.4 (Is it up to dat
    e?): BLOCK_PISTON_EXTEND
    java.lang.NoSuchFieldError: BLOCK_PISTON_EXTEND
    at com.massivecraft.factions.Factions.onEnable(Factions.java:173)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:857)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:264)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136
    )
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)


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

    ledhead900

    I don't know how you came to that assumption about those not working, and there is not 3.5 its Permissions 3.1.6 or lower. It's very unlikely a minor differences of 3.1.5 - 3.1.6 would have messed up your permissions I am going to call this and say you just incorrectly setup your permissions plugins like the many other's that do this.

    Let me ask you this did you use the global.yml config ?, if you did then that is why it never works properly its been known and has been posted in the OP of the permissions plugin to no use the global system as nothing really supports it and it breaks more than it works with. I never used that from the start and it works with little difference than what "GroupManger" or "Permissions 2.7" used to right down to the actual formatting of the config files.

    If you send us a zipfile containing of your permissions plugin folder and its contents I will take a look for you and let u know if I can see any obvious issues stopping this from working.

    I got that as well with falsebook tho and only happens once certain conditions are met, events I have not bothered to pin point currently. My immediate guess lead me to assume this is caused by the change of Craftbukkit adding official piston API and the old methods depriciated.

    Please read and follow these guidelines when posting bug reports, I'll be damned if anyone is able to help you otherwise.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Sep 9, 2018
  11. Offline

    CGA1123

    Thanks! Done and working!
     
  12. Offline

    Kattalassien

    >22:24:23 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'f' in plugin Factions v1.4.4
    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:320)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    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)
    Caused by: java.lang.NumberFormatException: For input string: "Purified"
    at java.lang.NumberFormatException.forInputString(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at com.massivecraft.factions.commands.FCommandWarclaim.perform(FCommandWarclaim.java:38)
    at com.massivecraft.factions.commands.FBaseCommand.execute(FBaseCommand.java:65)
    at com.massivecraft.factions.Factions.handleCommand(Factions.java:434)
    at com.massivecraft.factions.Factions.onCommand(Factions.java:419)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more


    happens when I /f war Other than that Factions is working fine, any help?
     
  13. Offline

    Chuckster

    Ok here is my permissions group.yml in my world folder no i do not use global configs
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
            - factions.participate.*
            - factions.create.*
            - factions.participate.*
            - factions.create.*
            - factions.viewAnyPower.*
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
            - factions.manageSafeZone.*
            - factions.participate.*
            - factions.create.*
            - factions.viewAnyPower.*
            - factions.manageWarZone.*
            - factions.adminBypass.*
            - factions.saveall.*
            - factions.lock.*
            - factions.disband.*
            - factions.worldOptions.*
            - factions.config.*
            - factions.reload.*
            - factions.participate.*
            - factions.create.*
            - factions.manageSafeZone.*
            - factions.manageWarZone.*
            - factions.adminBypass.*
            - factions.reload.*
            - factions.saveall.*
            - factions.lock.*
            - factions.disband.*
            - factions.worldOptions.*
    
    and here is my user.yml
    Code:
    users:
        TheNo1Yeti:
            groups:
            - Admins
            permissions: []
        Herpina:
            groups:
            - Moderator
            permissions:
            - herp.derp
        Derpina:
            groups:
            - Admins
            info:
                prefix: '&4'
            permissions:
            - -derp.derp
        brandonhbarnard:
            permissions: []
            groups:
            - Default
        KyleReece:
            permissions: []
            groups:
            - Default
        Evil_Notch:
            permissions: []
            groups:
            - Default
        cookiemonster73:
            permissions: []
            groups:
            - Default
        Shadeve:
            permissions: []
            groups:
            - Admins
        Evil_fullwall:
            permissions: []
            groups:
            - Default
        mellonlord:
            permissions: []
            groups:
            - Default
        Teglarian-Guard:
            permissions: []
            groups:
            - Default
        minecraftrookie5:
            permissions: []
            groups: []
        Macaronijack:
            permissions: []
            groups: []
        VGameGuy:
            permissions: []
            groups: []
        Herobrine:
            permissions: []
            groups: []
        Evil_aPunch:
            permissions: []
            groups: []
     
  14. Offline

    ledhead900

    Remove the ".*" from all those permissions regarding faction stuff :p.
    Also what permissions system are u using currently if your still having an issue can show u mine. " ignore the " marks"

    Also if the "Admins:" Group is just for your OP's or just you u can remove every single command u ever put in that group and replace it with just one command - '*' :)

    I will show mine so you get an idea how to set up permissions a little better.
    http://pastebin.com/BvBYLwKE make sure that you don't add the numbers that u see at the front of all of that text in the link as that is just what pastebin does to it :p, if you want the raw data I pasted into it scroll down to the bottom of the page and you will find it.

    Also its a good idea to paste your configs that use YAML into this awesome site http://yaml-online-parser.appspot.com/ to check they are formatting error free. You will know if it does not have an error as it will display the output on the right hand side of the page. The Output should throw you a replicate of the stuff you pasted if not it wall clearly say ERROR: at the top and some info indicating the line at which the error is on.

    Your permissions config has no YAML formatting error right now tho I just checked that for you.
     
  15. Offline

    Malchus

    We are having a respawn glitch, users are spawning exactly where they die and then they get killed repeatedly.
    I am running the latest version as well as the latest version of bukkit.
     
  16. Offline

    locutus

    I have just sent you a pull request for the latest version of a simple hack I've been using on my server for about a month. I know interest in this was expressed quite a while ago, but I never got around to figuring out github or updating to the latest version of Factions. I hope you like it!

    This adds an option for softer protection. Players can still attack other's territory, but at a cost in health. Every block placed or destroyed does a half heart of damage to the offending player.

    These are the options that control it:

    ownedAreaPainBuild
    territoryPainBuild
    territoryPainBuildWhenOffline
    territoryEnemyPainBuild
    territoryEnemyPainBuildWhenOffline

    I do ask that if you include this, I get attribution somewhere. It's a tiny hack, but it's mine.
     
  17. Offline

    Darcion

    is it possible that factions get connection with spouse features? maybe for same capes or other special stuff?
     
  18. Offline

    Olof Larsson

    This is because the hungry plugin author is loading GSON library in a wrong way.
    @tr4656
    You have GSON embedded inside your plugin and you are using the default package name com.google.gson. There are two ways for you to fix this.

    The best way: Use the jar loader hack to load the file "serverroot/lib/gson.jar".
    https://github.com/MassiveCraft/Fac...com/massivecraft/factions/util/JarLoader.java

    The second best way: Rename the package name from com.google.gs to us.icebrg.hungry.gson.

    @Brettflan
    Even if issues such as this clash with the hungry plugin appears, I am convinced that libraries should be external and not embedded into the plugin. Gson is a huge library. To include copies of it many plugins is a waste of resources when the plugins can share the lib. Libraries are supposed to be shared that is part of the concept ^^



     
  19. Offline

    Thequickthinkin

    is it possible to color the factions tags? If so how?
     
  20. Offline

    pandapipino

    Factions 1.4.4
    Very nice update although I'm not using iConomy :( but can you please add essentials economy?
     
  21. Offline

    formaldehyd

  22. Offline

    Brettflan

    What version of CraftBukkit are you running? It's probably outdated. You can see the version when you start CraftBukkit. You need at least RB 1000, which would look like this:
    [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-g73697a4-b1000jnks (MC: 1.7.3)

    You apparently input /f war Purified. Where you have "Purified" the command accepts an integer as input for an optional radius. It should have error handling added in to notify you of such mistakes, though; I'll update that.

    I'll review it for inclusion. Anyone who contributes code is added to the contributor list in the first post.

    Spouse features? Is that another plugin? I don't know what you're referring to based on that, so probably not.

    "In an ideal world"... :p Of course, if all plugins that use GSON can share the library without each loading its own copy, that will be great.

    They're colored by default, with the "chatTagRelationColored" option set to true. You'll need to provide more details if you're having problems with that.

    Might happen eventually. Didn't it have a bridge to masquerade as iConomy at some point though, or am I misremembering?

    Looks like you've messed up the "chatTagFormat" setting. The default for it is "%s§f", but the important bit of that which needs to be included is the "%s". The "§f" part of it is to change text after the tag back to the default white color.
     
  23. Offline

    dabram71

    I have an idea... Can you make a plugin that shows a message and you can click yes or no, yes being install a .jar from online, no being do not log on, because the server has mods that you need to install to play. Sort of like an auto updater?
     
  24. Offline

    FuturaEX

    @Brettflan 19:36:06 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-904- g9277096-b953jnks (MC: 1.7.2) so it's outdated... how do i update?? thats the first bukkit server i ever used, so i have no idea.. xD
     
  25. Offline

    Zoaen

    Hello i tried the plugin but the conf.json keeps changing when i configure it.

    Extra Info:
    I reloaded the server while it was on
    I have essentials chats
    I used notepadd ++ to edit it
    I tried saving it as .json
    It changes colour of name to white

    Example of what happened
    Made a new faction called test
    when i chat i sound like this
    a**test0 Zaoen: oh mother****er!

    Server Log:
    2011-08-03 20:13:24 [INFO] [Factions v1.4.3] === ENABLE START ===
    2011-08-03 20:13:24 [INFO] [Factions v1.4.3] Loading conf from disk
    2011-08-03 20:13:24 [INFO] [Factions v1.4.3] Loading players from disk
    2011-08-03 20:13:24 [INFO] [Factions v1.4.3] Loading factions from disk
    2011-08-03 20:13:24 [INFO] [Factions v1.4.3] Loading board from disk
    2011-08-03 20:13:24 [INFO] [Factions v1.4.3] Found and will use plugin Permissions v3.1.6
    2011-08-03 20:13:24 [INFO] [Factions v1.4.3] Found and will integrate chat with EssentialsChat v2.5.6

    No info about when i chat
     
  26. Offline

    Brettflan

    http://bukkit.org/

    Read the userguide on chat configuration: http://massivecraft.com/plugins/factions/config
    Your best bet is to just stick "{FACTION}" in EssentialsChat's chat format configuration.
     
  27. Offline

    FuturaEX

    umm, i use another plug in called '' pvparena''
    but when we have a fight in pvp arena it says '' can't hurt [player] '' becuase he is in my faction, what should i do?
     
  28. Offline

    Zoaen

  29. Offline

    Zaila

    I'm having 2 issues at this moment.

    First is, one of the factions on the server i'm leading did go over 20 members. When that happend, it became impossible to invite, saying something in line with "You can only join normal faction, this is a system faction". How can this be fixed?

    Also, i've been trying to find a solution to keep HeroChat just to have the local chat and still have the possibility to have the faction chat. Nothing i've tried have been working. Do anyone here know a way to get that?
     
  30. Offline

    Logan882

    Would it be possible to add an option to show display name instead of the user name in faction chat. If this is already possible how do i set it up? I dont see it anywhere on the config link pages.
     

Share This Page