Filled Passive Mode

Discussion in 'Plugin Requests' started by XBH3-Bandit, Nov 20, 2020.

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

    XBH3-Bandit

    Minecraft Version: 1.7.10

    What I need: Hello, I need a plugin that enables a sort of passive mode for my players. Essentially when active, players can’t hit or be hit by other players. This should ideally work on a per player basis, so if a player doesn’t want to have pvp they can use this and if they want pvp they can turn it off. Preferably, I’d like there to be a configurable cool down between activations and deactivations. So when someone leaves passive mode, they have to wait the specified amount of time before they can turn it back on. I also need it to NOT override WorldGuard region pvp rules as this would break my community hub and my arenas.

    Commands:
    /passivemode (on/off) - enable and disable passive mode for self.
    /passivemode list - list all the players that are in passive mode and possibly a second list of those who aren’t.
    /passivemode [Player] (on/off) - a command for admins that allow them to turn passive mode on or off for any player at anytime and should ignore the cooldown.
    /passivemode reload - reload the plugin config e.g. new cooldown.

    Permissions:
    Passivemode.player - allows players to use the command to enter and exit passive mode.
    Passivemode.admin - allows admins to use the /passivemode [player] (on/off) command.
    Passivemode.list - allows admins to use the /passivemode list command.
    Passivemode.reload - allows admins to use the /passivemode reload command.

    When I need it: As soon as possible

    thanks for reading, I hope someone can do this for me. I’ll be very thankful to anyone that can help.
     
  2. Offline

    ProVeritgo

    I could do this for you but I have already taken up another request and I have ti update one of my current plugins so it will be about a week before I get back to you so if anyone else wants to do it feel free to do so otherwise ill get back to you when I have time.
     
  3. Offline

    XBH3-Bandit

    Thanks, if no one else can do it sooner, that will be fine
     
  4. Offline

    ProVeritgo

    Hello, I am done with my other request and I can help with this, if you still need it. However I need you to answer some questions.

    1) Do you want a passive mode combat cooldown (even though a lot of combat cooldown plugins can do this, do you want the plugins to have a cooldown after engaging in combat with another player)

    2) Do you want it to affect mobs (will mobs be able to hit you when you are on passive mode)

    3) Will you be able to place lava, tnt, light fires with flint and steel... while on passive mode

    4) The thing you said about worldguard. Your hub will not break but the arenas, its kinda hard to make it not be allowed in some regions. Can't you use worldguard to make it so the command isn't available in the arenas.
     
  5. Offline

    XBH3-Bandit

    Sure,
    The player shouldn’t be able to enter passive mode if they are in combat with another player ( if possible) so a cooldown after engaging in combat would be great.

    Mobs should still be able to attack you in passive mode to allow you to play survival as normal.

    TNT placement should be prevented and players shouldn’t be able to place lava or light fires near someone who is in passive mode so that they cannot find ways to still damage the player.

    As for the WorldGuard question, I was hoping there would be some way to make the WorldGuard PVP rule have a higher priority than passive mode, so that pvp is enforced in certain regions, but if it’s possible for me to just disable the command in certain regions that’s fine too.

    Thanks for your help, I’ll be happy to answer any more questions you have.
     
  6. Offline

    ProVeritgo

    Thanks, 1 more question. You said that the commands should be /passivemode (on/off) I could do that but wouldn’t it work better if you just did /passivemode and it toggled so if you were passive you would get out of it the opposite.
     
  7. Offline

    XBH3-Bandit

    My apologies, that’s what I meant, it’s my first time writing these posts, I should have made it clearer. Using /passivemode as a toggle would be perfect thank you
     
  8. Offline

    ProVeritgo

    No worries, it's also like my 3rd time making one of these
     
  9. Offline

    XBH3-Bandit

    Not to press you but How is progress coming along? Is it looking good?
     
  10. Offline

    ProVeritgo

    I'm sorry I haven't gotten back to you, I had a very busy schedule and I forgot about it I will start making it today, it will be ready in a few days. Sorry for the delay
     
  11. Offline

    XBH3-Bandit

    No worries, take as long as you need, thank you
     
  12. Offline

    ProVeritgo

    Thank you for the understanding and for reminding me .

    EDIT: This is me on Saturday, I didn't actually have time to start coding that day, so I started today, I pretty much finished the plugin and I have to implement some small things and test it.
    There is 1 issue, do you mind making the /passivemode [player] command something like /passivemode toggle [player] because having the same format and then expecting a player can get a bit messed up (I can do it but it will not be very practical) I would have done the testing today but it is my moms birthday and I cant get on for more than like an hour.

    EDIT: Your plugin is done and I uploaded it: <Edit by Moderator: Redacted not allowed paid resource url>
     
    Last edited by a moderator: Feb 8, 2021
  13. Offline

    XBH3-Bandit

     
    Last edited by a moderator: Feb 8, 2021
  14. Offline

    ProVeritgo

    No problem, I did test it with an alt and I got no error but if you find a bug or you want anything else added, feel free to tell me. If it works fine make sure to give it a review :D and mark the request as filled.

    EDIT: Also I forgot to ask, what is your server IP I would to see it for myself.
     
    Last edited: Dec 7, 2020
  15. Offline

    XBH3-Bandit

    I’m afraid the plugin wouldn’t load on my server. Though admittedly it may be down to the fact that my server runs on thermos. The first line of the error is “Cannot Find Main Class ‘me.provertigo.passivemode.main’”
    I will upload the full error log shortly. Sorry to cause you any inconvenience.
     

    Attached Files:

  16. Offline

    ProVeritgo

    Ok, thanks for sharing your error let me explain what the error is. A main class is a class that you have to make when coding a plugin and it includes a line of code that tells the program it is actually a bukkit plugin and not some random program, it is essential for all plugins and plugins do not function without it. When making the plugin the dev (me) has to specify a location for that class in order for the plugin to work. This error normally happens if you misspell it or put in a wrong location. However I download the plugin right from spigot and put it on my 1.7.10 test server and it works perfectly with no errors so I believe it has something to do with the way your server is set up. I will try but I can't promise anything since I have never seen this error before.
     
Thread Status:
Not open for further replies.

Share This Page