[Plugin Request] Safe Logout

Discussion in 'Archived: Plugin Requests' started by IamMcDylanH, Mar 27, 2013.

  1. Offline

    IamMcDylanH

    Plugin category: Mechanics

    Suggested name: Safe Logout or Safe Quit

    What I want: When a player disconnects (either through the menu or closing minecraft) an npc of them is spawned, preferably their npc not a steve skin, for a configurable time.
    To work around this players must type /logout or /quit. A countdown will begin in the players chat, at a configurable time.

    If possible also add a feature that increases the time if they were recently in pvp. All configurable times - Time since pvp, pvp safe logout time, pvp npc time.

    Ideas for commands: /logout or /quit

    Admin Commands: /SL reload, /SL set npc 20 (sets npc to spawn for 20 seconds), /SL set logout 15 (sets logout timer at 15 seconds)

    Ideas for permissions: SafeLogout.bypass.npc, SafeLogout.bypass.logout, SafeLogout.bypass.*

    When I'd like it by: As soon as possible.

    Anybody interested?

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

    nxtguy

    Why do you need this? Just wondering.
     
  3. Offline

    IamMcDylanH

    So people don't see a threat and logout before entering combat.
     
  4. Offline

    sebdomsan54

    some one could use the citizzens hooks to do this
     
  5. Offline

    IamMcDylanH

    I think there are plugins like battlecombatlog that spawn an npc without a citizens hook.
     
  6. Offline

    sebdomsan54

    i know but any npc plugin has that hook
    it jus that citizents works best
     
  7. Offline

    IamMcDylanH

    I can't find any other combat log plugins that use npcs other than this: http://dev.bukkit.org/server-mods/combat-tag and it doesnt use Citizens.

    Still looking for a developer.

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

    sebdomsan54

    i know im saying it would de use full thats all mor config to it but a single plugin will do that donse not nee another plugin
     
  9. Offline

    IamMcDylanH

    less plugins the better :)
     
  10. Offline

    DarkRiddles

    This is just stupid, What is the point of this plugin?(I really don't know what you want this to do)
     
  11. Offline

    sebdomsan54

    it so no one can run away from a fight and even if they do they still lose there items to the other player
     
  12. Offline

    IamMcDylanH

    What don't you understand? I run a pvp server. I'm trying to prevent people from seeing an enemy and logging out before they get into combat. This plugin will make the player stand still for a given time after typing the command to leave safely. If a player just disconnects or shutsdown minecraft they will spawn an npc with their inventory.
     
  13. Offline

    DarkRiddles

  14. Offline

    Evilshallwin

    Do you not understand? This is for when people see an enemy and log without being attacked or attacking.
     
  15. Offline

    DarkRiddles

    So he wants a plugin so that player a can log out safely wheen he see a enemy?
     
  16. Offline

    IamMcDylanH

    It makes it so you have to type /logout and wait about 15 seconds in the same spot. It's to hopefully prevent people from logging out when they're in imminent danger.
     
  17. Offline

    DarkRiddles

    So you want it so that when player a see player b, he can not log out untill 15 second has past, but if he force log out then a npc will spawn and player b can kill his npc
     
  18. Offline

    IamMcDylanH

    Yes, but in order to initiate the logout they have to type /logout or /quit
     
  19. Offline

    DarkRiddles

    So
    A player will have to type /logout or /quit
    A msg will display saying 15 seconds till you can log out alive!, 14 seconds etc
    Then a msg will display you can now log out alive!
    IF he forcelogout b4 the 15seconds are over or if he doesnt do /logout or /quit a npc will spawn were the enemy can kill player a is that right?
     
  20. Offline

    IamMcDylanH

    After 15 seconds (or the configured time) the player will be disconnected from the server. If they forcelogout before the time is up an npc will be spawned.
     
  21. Offline

    Fluxty

  22. Offline

    daboross

    The logging out part of this wouldn't be hard, it would be the killing. You would have to have the npc be able to be killed, remember what items were in the player's inventory, and remove those items from the player's inventory when the log back on. All of that would be pretty tricky to do.
     
  23. Offline

    Fluxty

    daboross True, but there are already plugins such as combat tag and combat log that accomplish this, without the safe-logout feature. Combat Tag does have an API as well: http://dev.bukkit.org/bukkit-plugins/combat-tag/pages/using-the-api/

    The only thing that is not available here is spawning the npc when a player is within a radius and does not use safe-logout.
     
  24. Offline

    Awesomeman2

    use minez logout AND combatlog. :)
     
  25. Offline

    CasparW

    Done! dev.bukkit.org/bukkit-plugins/logout
     
  26. Offline

    Fluxty

    CasparW This is not the requested plugin. The requested plugin will cancel the safe logout if the player moves or is hit by an entity. Forcing a log out is still permitted but if a player is in a set area an NPC will be put in the players spot holding all of their inventory and armor to stop pvp logging.

    The point of this plugin is to stop PvP logging.
     

Share This Page