Filled Factions Plugin Add-on

Discussion in 'Plugin Requests' started by Jaackk, Jan 4, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    Jaackk

    Plugin category: Fun

    Suggested name: MassiveFactionsExtras

    What I want: I am looking for a plugin that hooks into Massivecore's Factions plugin and will disable all mob damage to players within faction claims. Outside of claims they will be able to harm players. If possible also the ability to make mobs only spawn from spawners (from silk spawners) in claims, not inside claimed areas naturally. Outside of claims they are able to spawn naturally. What also could be great if possible is allow faction members to be alerted if anyone that is not in their faction is in their claim. This could come up in the chat or as a big message on screen like "%player% has entered your claim!".

    I think these options could look like this in a yaml config:

    # Allow Mobs to harm players within Faction claims?
    allowmobdamage:
    false

    # Allow Mobs to naturally spawn within Faction claims?
    allowmobspawn:
    false

    # Notify factions when players enter their claims?
    notifyclaimentry:
    true

    Which format should factions be notified of this in?
    notifychatformat:
    true
    notifyonscreen:
    true

    Ideas for commands:

    /MassiveFactionsExtras
    Or alias:
    /mfe

    /mfe reload
    /mfe notify (toggle the notifications of players entering your factions claim)
    alias:
    /f notify

    Ideas for permissions:

    MassiveFactionsExtras.reload
    MassiveFactionsExtras.notify
    MassiveFactionsExtras.notify.bypass (Do not notify players you are in their claim)

    When I'd like it by:

    12th of Jan if possible please :D
     
    Last edited: Jan 4, 2016
  2. Offline

    grrocks

    Might do this tag me in a couple of day if I havent responded
     
  3. Offline

    Jaackk

    Will do, thank you for the interest :)
     
    0566 and UnseenMC Network like this.
  4. Offline

    0566

    If I have some spare time I'll do this.
     
  5. Offline

    Jaackk

    Awesome, keep me updated :) Thanks for the interest.
     
  6. Offline

    87pen

    Last edited: Jan 5, 2016
  7. Offline

    Jaackk

    Sweet! I'll check it out and get back to you :)

    EDIT: @87pen Hey, I tried the plugin out but got quite a few errors, most were hard to catch as they got lost in the console. Here are two I saw a lot of:

    ERROR Could not pass event EntityDamageByEntityEvent to MassiveFactionsExtras v1.0



    ERROR Could not pass event CreatureSpawnEvent to MassiveFactionsExtras v1.0

    Also I saw a few more? Couldn't quite catch them either.

    Not sure what the problem is but hope it can be resolved, thanks :)
     
    Last edited: Jan 7, 2016
  8. Offline

    87pen

  9. Offline

    Jaackk

    @87pen Hi there, I used the new download and the plugin seemed to activate without errors this time however, mobs are still able to damage players within claims.

    Also I wasn't sure when you said "Mobs can only spawn from spawners in claimed land."

    I would like mobs to be able to spawn outside of claims from spawners, just not naturally in claims. I noticed mob spawning was disabled outside of claims completely.

    (This means that if players make faction bases they won't have mobs spawning in their claim from darkness. It would be annoying for them to have to light it all up with torches).

    I would still like mobs to spawn the same as they always did anywhere else apart from within claims.

    Many thanks!
     
  10. Offline

    87pen

    By saying mobs can only spawn from spawners in claimed land, are you saying you did not want this function as it was asked in the OP
    I believe this is what you asked for when saying the ability to make mobs ONLY spawn from spawners in claims.
    Mob spawning outside of claims is still enabled.

    CHANGELOG:
    - Fixed bugs
    - Turned off natural mob spawning in claimed land.
    Features:
    - Mobs can only spawn from spawners in claimed land.
    - Mobs can only naturally spawn in the wilderness.
    - You cannot take damage from Creatures in claimed land.
    Coming soon:
    - Notification when an enemy or neutral player enters your claimed land.

    https://www.dropbox.com/s/b4m1sr01pafuuhu/MFactionsExtras.jar?dl=0
     
    Last edited: Jan 6, 2016
  11. Offline

    Jaackk

    No you are right, I have always wanted mobs to only be able to spawn in claimed land from spawners however in the wilderness mobs are not able to spawn at the moment (from spawners). They can only spawn in claimed land from them.

    You said "Mob spawning outside of claims is still enabled."

    however:

    "- Mobs can only naturally spawn in the wilderness."

    I would like mobs to be able to spawn from spawners in the Wilderness too.

    Mobs can no longer harm players in claimed land - tick!

    One general question: Does this affect the nether and zombiepigmen? I didn't test for it yet but I assume it does?

    Many thanks :)
     
  12. Offline

    87pen

    Animals, Blaze, CaveSpider, Chicken, Cow, Creeper, Enderman, Endermite, Giant, Golem, Guardian, Horse,IronGolem, Monster, MushroomCow, NPC, Ocelot, Pig, PigZombie, Rabbit, Sheep, Silverfish, Skeleton, Snowman, Spider,Villager, Witch, Wither, Wolf, Zombie Is a list of entities the plugin applies to.
    Any features you do not want in the plugin you can turn off in the config.yml.

    CHANGELOG:
    - Squashed bug where skeletons could still damage you in a claim.
    DOWNLOAD:

    https://www.dropbox.com/s/b4m1sr01pafuuhu/MFactionsExtras.jar?dl=0
     
    Last edited: Jan 6, 2016
  13. Offline

    Jaackk

    Perfect, thank you very much! :D

    Keep me updated for when notifications are ready!
     
  14. Offline

    87pen

  15. Offline

    Jaackk

    I really like it! Do you think you could make the alert message configurable? At the moment it reads:

    ALERT!: (player), from , Has entered one fo your claims.

    I would like if I could change this around a little bit and correct the punctuation etc.
    One slight problem with the message is that if the player isn't in a faction, the message says "from , Has entered...".

    If possible do you think that you could add a command for players to toggle the notification of for certain players if they are spamming it by entering and leaving someones claim repetitively.

    For example: /ClaimAlert (player)

    Text output: You have ignored (player) from sending you ALERT messages upon entering your claim.

    Many thanks! :)
     
    Last edited: Jan 7, 2016
  16. Offline

    87pen

    @Jaackk I can and I will have it done by the end of today. I will also make the message configurable for you.
     
  17. Offline

    Jaackk

    @87pen You're a star, thank you ever so much :D
     
  18. Offline

    87pen

    Thanks. Well as a thanks here is an UPDATE!
    CHANGELOG:
    - Notification Message Configurable. ( In the config the strings <player>, <faction> will be replaced with player entering the claim and his faction.
    - Commands have been added. /MFactionsextras or /mfe for short!
    DOWNLOAD:
    https://www.dropbox.com/s/b4m1sr01pafuuhu/MFactionsExtras.jar?dl=0
    PLEASE READ:
    Along with deleting the MFactionsExtras folder in the plugins folder on your first launch of the server you must RESTART your server or have EVERYONE logged off when reloading, If you do not do this It will mess up the plugins .yml files.
    BUGS:
    - As soon as I posted this 7 minutes ago I realized I forgot a line in the plugin.yml it's safe to download now.
    - I have not tested this version so if you encounter any bugs tahg me and I will fix them asap!
     
    Last edited: Jan 7, 2016
  19. Offline

    Jaackk

    Hey again,

    I could not find any errors in the console on startup but the plugin did not load at all.
    I restarted the server twice and no configuration file was loaded and the plugin does not seem to be working at all,

    If you need any extra info I can try and restart again and see for any errors but they are hard to see as my multicraft console is somewhat small and they are disappearing quickly if there are any.

    I will upload the plugin to my hub server and see if I can find any errors in the console as the hub has way less info to deal with :)

    Thanks!

    EDIT: Found this in the config upon installing:

    http://pastebin.com/UcL3FspV
     
    Last edited: Jan 7, 2016
  20. Offline

    87pen

  21. Offline

    Jaackk

    Working again! :)

    One problem is when a player types /mfe add (player)

    The player is still alerting the faction upon their claim entry.
    This feature doesn't seem to be working properly,

    Many thanks :)
     
  22. Offline

    87pen

    I will fix that right away.

    UPDATE!

    Changelog:
    - Fixed bug where it would send notice messages to players that are on the ignore list.
    INFO:
    MAKE SURE NO ONE IS ON THE SERVER WHEN UPDATING, EASIEST WAY IS TO FULLY RESTART THE SERVER NOT JUST /reload YOU WILL GET ERRORS IF YOU DO NOT RESTART THE SERVER.
    Download:
    https://www.dropbox.com/s/b4m1sr01pafuuhu/MFactionsExtras.jar?dl=0

    @Jaackk Another Update!
    CHANGELOG:
    - squashed bug that would spam console with errors, caused by the factions config not loading properly.
    BUGS:
    - None currently known.
    Download:
    https://www.dropbox.com/s/b4m1sr01pafuuhu/MFactionsExtras.jar?dl=0
     
    Last edited: Jan 8, 2016
    Jaackk likes this.
  23. Offline

    Jaackk

    The alerts don't work!

    Apart from that everything is working like a charm, thank you :)
     
  24. Offline

    87pen

    I'll look at it tonight after work.

    Update
    CHANGELOG:
    - Fixed glitch where it would not send messages to faction members.
    INFO:
    Super important that when downloading this you delete the MfactionsExtras folder and restart your server.
    Download:
    https://www.dropbox.com/s/b4m1sr01pafuuhu/MFactionsExtras.jar?dl=0

    @Jaackk
     
    Last edited: Jan 9, 2016
    Jaackk likes this.
  25. Offline

    Jaackk

    Hey, I have just found out Blazes can still hit / harm players within their claims even though the setting for it is configured for them not to,

    Hope this can be fixed,

    Many thanks.
     
  26. Offline

    87pen

    I will fix it in 1-2 days.
     
  27. Offline

    Jaackk

    Awesome, thank you,

    Is it possible to make mobs completely not aggro in claims or would that be too hard/impossible?

    Thanks again! :D
     
  28. Offline

    87pen

    It's possible. I can change the system to that if you would like.
     
  29. Offline

    Jaackk

    @87pen That would be awesome if you could! :D
     
    Last edited: Jan 11, 2016
  30. Offline

    87pen

    Jaackk likes this.
Thread Status:
Not open for further replies.

Share This Page