Disabled /back functionality in PvP

Discussion in 'Plugin Requests' started by LeloDragneel, Mar 24, 2017.

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

    LeloDragneel

    Minecraft version: Spigot 1.11.2

    Suggested name: CustomBack

    What I want: Hello. I would like to request a plugin that allows players to do /back. I would like /back to work in the same way Essentials works, but not in Pvp. If the player has been killed (or set on fire) by another player, typing /back would NOT take you to your death point.
    Thanks for reading the request!

    Ideas for commands: /pluginname reload

    Ideas for permissions: pluginname.back.ondeath
    pluginname.back.pvp


    When I'd like it by: Anytime. You guys are awesome.
     
  2. Offline

    jobisingh

    Are you using any other plugin to track combat, and if so what is it
     
  3. Offline

    Roborack17

    I will start working on a plugin. Just, tell me if you want to disable /back to player only if he is killed by another player or you want to disable it somewhere else too?
     
  4. Offline

    LeloDragneel

    I am using PvpManager. And I thoroughly checked the config file. There is no option related to /back.

    Thank you so much Roborack. I want to disable /back only if the player has been killed by another player. Which means the last location should be registered when:
    - Player dies from any natural death
    - Upon teleportation

    Thanks again!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Mar 25, 2017
  5. Offline

    Roborack17

    I am finishing plugin, so: After you type /back (which is a command from Essentials), plugin checks if player is killed by another player, or if he is in pvp, and if it is then it will not teleport player back, but in other cases it will. Will that be okay?
     
  6. Offline

    LeloDragneel

    That would be awesome. It is exactly what I am looking for. And hopefully many others will benefit from your work.
    Thank you so much Roborack.
     
  7. Offline

    Roborack17

    Hey :) I am done with this, but you will need CombatLog for this since this plugin depends on it for checking if player is tagged or not. Is that okay?
     
  8. Offline

    LeloDragneel

    If it's easier for you, then sure. But preferably make it work with PvPManager. I am grateful for everything :)
     
    Last edited: Mar 27, 2017
  9. Offline

    Roborack17

    Here it is: https://dev.bukkit.org/projects/back-block

    It currently works with CombatLog, so you can use that until i make it work with PvPManager :) Hope you like it!
     
  10. Hey, you said that the plugin prevents a player from using /back if they have died. I'm just trying to help out here, but if that is the case, unless you remove that tag when the player teleports, once they die they will never be able to use the command again.
     
  11. Offline

    Roborack17

    Well, not really. It prevents player from using /back only if he is killed by another player. So, it adds a player into the Array list, and after player dies again, but this time not from a player but from a mob or something, then he gets removed from an array list. :)
     
Thread Status:
Not open for further replies.

Share This Page