[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


    Will there ever be an optional MySQL config for this? It takes the server about 20 seconds to start up because 15 of those seconds is spent loading the players from the disk.
  2. Offline


    HELP i temporaily made my friend admin and now i want it back but hes away on vacation.How do i make myself admin again?!
  3. Offline


    1. That sounds about right. Without a permission plugin and not using the default Bukkit permissions.yml file to configure them, only a few permissions are granted by default as mentioned in the user guide.
    2. ...what?

    EssentialsChat and prefixes? Maybe I'm missing something, but EssentialsChat configuration should come down to something like this in your Essentials config.yml:
      radius: 50
      format: '<{FACTION} {DISPLAYNAME}> {MESSAGE}'
      #  Default: '{WORLDNAME} {DISPLAYNAME}&7:&f {MESSAGE}'
      #  Admins: '{WORLDNAME} &c[{GROUP}]&f {DISPLAYNAME}&7:&c {MESSAGE}'
    Note (as covered in the user guide) the addition of "{FACTION}" to that. I'm not sure where prefixes or suffixes really enter into that.

    I had to skim back to the last page to see what you're talking about here, but no, as long as you're running RB 1185 and Factions 1.5.1, those extra enderman settings to stop them from moving blocks in controlled territory should work fine.
    As for ender pearls, what do you mean about them not working? They don't actually do anything in 1.8. I think they're supposed to teleport you with a cost to your health in 1.9, but not in 1.8.

    What do you mean by "not working"? Can you provide more details? Are you using another plugin which does stuff with chat?

    The other way around, I think you mean. Last I heard, HeroChat was going to update their channel handling method to play nice with other plugins (altering the chat event's recipient list instead of cancelling the event and sending out individual messages). I assume that hasn't happened yet based on your post.

    What message do you get when you try to hit those other players?

    Without learning more about how DynMap handles webchat, which I don't really have time for at the moment: there's probably no other way to fix it in the current release.

    Trying to compile individual .java files? That doesn't seem right, but then I've never tried to compile a project using the bare JDK. I'd recommend looking into using NetBeans (powerful and easy to use) or Eclipse (a little more powerful but also a pain in the ass IMO).

    1. I'm not really a fan of slashless commands either, that's Olof's baby. You can disable it easily enough, though: /f config allowNoSlashCommand false.
    2. Factions uses that "lowest" priority chat listener for exactly that reason. It's there to handle slashless Factions commands and faction chat before other plugins can mess with them. Besides those, all other chat handling is done in our additional "highest" priority chat listener (along with our softdepend list) which should occur after other plugins do whatever they want with chat.

    "Multithreaded teleports"? I'm not sure what they mean by that. Looking at your error log, I see that it gave a ConcurrentModificationException when someone used /f home, at this line of code in the home command's handler:
    Unless someone can tell me how using Player.teleport() inside a command handler is problematic, I'm at a loss as to how Factions is supposedly at fault there.

    I think Olof is planning to work on adding more persistence options at some point in the future, which would probably include MySQL.
    For it to even potentially make things faster at all during normal operation, though, that would take some pretty deep integration with MySQL.

    MySQL probably would indeed help speed up the process of loading data when the server starts. See the answer above.

    See the answer above the answer above.
    If you provide your Factions data files I could do some profiling of those commands to see how they might be sped up. I'm not sure when I might have time for that, though.

    You'd have to edit the players.json file manually, which might be dangerous. Otherwise, actually... if you're set as moderator of the faction, and you have the admin-level disband permission, you should be able to use /f kick on him to kick him out of the faction, and that should promote a moderator to the faction admin position.

    EDIT: wow, how much time did I just spend answering these questions... it can get rather tiresome, I have to say.
  4. Offline


    Make it able to make a area where faction members can hit each other
    like a /claim spleef or something
  5. Offline


    They are called WarZones and are already implemented :confused:
  6. Offline


    Can PowerRegain be turned off for WarZone/SafeZones? Like for instance if some one got wrecked, and goes and hides in the SafeZone to get power back.
  7. Offline


    Sorry I dind't have much time bcz of school, I'll check enderman things again when I have a time .. and with ender pearl, I read that you should be able to punch mobs from distance with pearl in hand
    as in video http://www.youtube.com/watch?v=-34bVorn8Co&feature=related

    btw. will you allow forum on dev.bukkit? :)
  8. Offline

    Mosh Mage

    19:34:52 [INFO] nRFM oble56;: noes
    Is this supposed to happen? the faction tag is RFM, the nick noble56 - it gets splited.
    or is this mChat + Factions fault?
  9. Offline


    Hi Brettflan, I am the other person in Abehh's "we."
    I was only going to change one file, that's why I tried to compile it alone. As you can probably tell, I don't know what I'm doing. I've bumbled around NetBeans for a few minutes and Google tells me only how to install Minecraft mods, not create or change them.

    So, just one more question: How would I go about opening the faction mod as a project in NetBeans?
  10. Offline


    question: can i claim a large piece of land with WorldEdit?
    if so, how?

    sorry factions n00b here :p
  11. Offline


    Am i doing something wrong? anyone can destroy and build in anyones faction... didnt even edit the config..
  12. Offline


    Nice man:) this is awesome 1 problem factions have people joining then stealing I was wondering if people in your faction would be unable to access chests. Thanks
  13. Offline


    Just curious if there are any plans for improving how this plugin loads. If I restart my server this plugin routinely takes 30 seconds to "load players from disk" and this seems ridiculous when other plugins can load all the data they need in a second or two.

    I get this message routinely:
    2011-10-04 17:49:13 [INFO] [Factions v1.5.1] Loading conf from disk
    2011-10-04 17:49:13 [INFO] [Factions v1.5.1] Loading players from disk
    2011-10-04 17:49:30 [INFO] Read timed out
    2011-10-04 17:49:38 [INFO] [Factions v1.5.1] Loading factions from disk
    2011-10-04 17:49:38 [INFO] [Factions v1.5.1] Loading board from disk
    2011-10-04 17:49:38 [INFO] [Factions v1.5.1] Found and will use Permissions v3.1.5 for permissions
    2011-10-04 17:49:38 [INFO] [Factions v1.5.1] Found and will use features of Spout v1.0.6.403
    2011-10-04 17:49:38 [INFO] [Factions v1.5.1] EssentialsEco hook available, and interface is enabled.
    2011-10-04 17:49:38 [INFO] [Factions v1.5.1] === ENABLE DONE (Took 25568ms) ===
    It will eventually load but as you can see it is taking way too long.

    Note: I have a fairly large server and this only seems to add to the problem. The more players I get the longer it takes to load. This will soon become unusable.
  14. Offline


    Not currently, it only pays attention to whether they're online or not.

    1. Read the comments on that video; they indicate that effect is actually from Creative mode instead of being from the ender pearl. In other words, don't believe everything you see or read.
    2. I'm not too keen on the forum software they're using for it or the way they have it set up, but we might eventually go ahead and switch to using it.

    Read the user guide's configuration page, particularly the part about chat configuration. In other words, either adjust your "chatTagInsertIndex" setting or choose one of the other methods.

    You could create a new project for it, or for simplicity you can use a copy of my own project files:

    Sorry, no.

    That's not normal, no. Investigate a bit more into what circumstances are allowing that, and/or provide more details. I don't really have time to help you troubleshoot it right now without more to go on.

    Use ownership on a claimed chunk and store chests in there which you don't want normal faction members to get into. For more info, check the user guide.

    @Jigsaw Well, the log info there does look to be useful; I see that it's pretty much solely the player info which is taking so long to load. Off the top of my head, it might be a good idea for us to look into more aggressively culling old player data.
    Could you provide me with a copy of your Factions data files for reference, so I can test using those? You could zip them up and stick them on <Edit by Moderator: Redacted mediafire url>
    I'm not sure when I'll have time for it, but I've added a note to myself to look into it.
    Last edited by a moderator: Nov 27, 2016
  15. Offline


  16. Hello!
    Im running newest faction version 1.5.1 and bukkit 1240, people cant use buttons in safezone, or in wilderness, how i can fix this?
    I use buttonwarp and now people cant teleport, buttons are located in wilderness.
    Ohh and they cant use tnt in wilderness too, why? :s
  17. Offline


    Brettflan do you know if Bukkit RB#1240 fixes the Bukkit Bug with Factions?

    Also a followup to the question i asked about power regain in safezone/warzone off, can you add this in the future?
  18. Offline


    req: Please make faction chests.. Like cPrivate chest, but for factions, where faction members can lock their chests, so other faction member's cant access them, but if enemy captures the land where those chests are, then he can access to chests (private access deleted on capture). This will prevent that some players just join faction to rob them.
  19. Offline


    i have the mob arena plugin and the arena is in my spawn.
    i have set all of my spawn in safe zone, now when i try and enter the arena i cant take damage
  20. Offline


    That's definitely not normal. What message do they get when they try to use buttons in a safezone? There is not even an option to prevent interaction with doors/chests/whatever (buttons in your case, presumably you added those to the protected material list) inside safe zones, so that should be thoroughly impossible.
    The same question for the TNT as well, what message are they getting when they try to ignite it? And out of curiosity, are they using flint&steel, or are they using redstone? Those are of course the only ways to ignite TNT as of a couple of major Minecraft releases ago.

    1. It doesn't look like it based on the change log, but I don't know.
    2. The current method of handling power regain is as lightweight as possible, only handling power regain whenever it absolutely has to. Adding in a method for it to keep track of where the player is and updating the power as needed based on that would take more work to implement than you might think, and give Factions more work to do in the background, potentially increasing server stress. So, not planned.

    That's what individual ownership of specific claimed chunks was added for. Read the user guide.

    Safe zones prevent damage from monsters, and prevent monsters from normally spawning there as well. Why not use a war zone?
  21. Offline


    Hey. I got the feature request. Is it possible to make faction-based permissions? i.e. if player joins a faction he gets permission node based on his position in faction.

    Small example:
    I got "bandits" faction.
    Regular players dont have PvP.
    But when they join "bandits" they get permission node something like: "- pvp.allow"
    and they can pvp now.

    The rank dependance is the same kind, for example
    rank 1
    - pvp.allow
    - stone.sword.allow
    rank 2
    - iron.sword.allow
    rank 3
    - diamond.sword.allow

    so, the faction leaders (who can promote users) will be able to give some advantage to ranked users, like using different items, etc (depending on what plugins server has,.. etc). Not as useful in free use of factions, but on servers with pre-set limited number of factions, it can make them different with own advantages and disadvantages.

    combining this feature with rpg plugins like Heroes would give great faction customisation.
    For example, Heroes have class system, and class-linked permission nodes like "heroes.classes.warrior", and that allows players to use Heroes plugin to choose warrior class.

    In combination with example made above it can be like this
    rank 1
    - pvp.allow
    - heroes.classes.bandit
    rank 2
    - heroes.classes.bandit-leader
    rank 3
    - heroes.classes.war-cheif

    that means, that basic recruits of faction will be able to choose class "bandit"
    When user is promoted to rank 2, he will be granted ability to switch to "bandit-leader" class, with its bonuses and skills. The same with war-chief. And, in total, will be possible to make different factions with their own classes and class ladders.

    Its just a small example with the plugins i know, but ability to set permission nodes to faction ranks and factions will give even greater flexibility and customisation + roleplay features, imho.

    Heroes' class-based permission nodes gave me another idea: is it possible to make faction-based permission nodes? i.e. specific node, that allows player to join specific faction. returning to previous examples, node like "- factions.join.bandits" will allow user to join bandits faction. the main idea, is to restrict users from joining specific factions. for example, it will be possible to make faction "citizens" which is only faction that you can join in the beginning. When you rank up in citizens, you get other nodes available, like, "- factions.join.bandits" or "- factions.join.warriors" and then you can switch to another faction with its benefits.

    Also, maybe a possibility to make permission node available in specific zone. i.e. "creative zone", for example, where all users can built, ignoring server's build restrictions by adding kind of bypass node (from another plugin, which restricts building).
  22. Offline


    I just checked your github, thanks for doing isPlayerAllowedToBuildHere - appreciated, for some reason, tnt won't explode in claimed territory, or wideness, as far as I am aware, ideas? I've checked my config:

  23. Offline


    What if faction house is so big, that it takes only one chunk?
    Please, think about adding private faction chests.
  24. Offline


    I don't think a *double* feature would be confusing.
  25. Offline


    I still think this is a essential plugin for any server that pvp is welcome, the only thing i would suggest, is a complete lang file so people could translate the plugin easy. Would this be possible in the future ? Thanx =]
  26. Offline


  27. Offline


    @Kuja_Diartua All of that could be done, but most of it would take a substantial amount of work. It's not currently planned.

    That's definitely odd. Your config looks fine, of course only being set to prevent TNT explosions in safe zones and war zones. I don't recall having done anything in the code related to TNT in quite some time. I'll look into it soonish.

    If you need one chunk safe, set ownership for it. If you need more chunks made safe, set ownership for them as well. Protection for individual chests is not planned.

    It's possible and would indeed be nice, but I don't have any current plans (or sufficient free time) for it.
  28. Offline


    Is there a way to get this:
    [FACTION][RANK]Epic Name: hi there! (Black is in minecraft white)
    I mean only the faction piece of the name... ( [FACTION] )
    Will be great, and now i've got this:

    &7[&4{FACTION}&7]7[RANK]Epic Name: hi there! (Black is in minecraft white)

    I've tried it with chatter, but then the hole plugin getted an error:

    21:17:03 [SEVERE] Error occurred while enabling Factions v1.5.1 (Is it up to date?): null
            at com.massivecraft.factions.Factions.log(Factions.java:501)
            at com.massivecraft.factions.Factions.log(Factions.java:497)
            at com.massivecraft.factions.Factions.onEnable(Factions.java:74)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:920)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

    Well, Cyaa
  29. Offline

    Derrick Mehaffy

    I am having an issue with Chatter and Factions. Chatter says they fully support factions however with CB build 1240 I get these Errors:
    2011-10-06 20:01:35 [SEVERE] Error occurred while enabling Factions v1.5.1 (Is it up to date?): null
        at com.massivecraft.factions.Factions.log(Factions.java:501)
        at com.massivecraft.factions.Factions.log(Factions.java:497)
        at com.massivecraft.factions.Factions.onEnable(Factions.java:74)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:941)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:174)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:157)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:416)
        at org.bukkit.Bukkit.reload(Bukkit.java:182)
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:358)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
        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:92)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    To prove Im on CB 1240:

    Not sure whats going on.
  30. Offline


    Another feature that would be handy to have would be the option to set block times of how long it takes to destroy in other factions territory. That way a claimed base would be able to be set where the entire thing takes 5-10 seconds to destroy each block. It would work really well with what I have set up where it takes several hearts to be able to destroy blocks while the faction is online and you are an enemy. With this option you could siege a base slowly if a faction isn't online it would just take a long time and leave you vulnerable with low hp.

Share This Page