Clear inventory ant teleport to spawn on quit

Discussion in 'Archived: Plugin Requests' started by pedrinholuizf, Jan 18, 2014.

  1. Offline

    pedrinholuizf

    Plugin category: Admin Tools

    Suggested name: SpawnOnQuit

    Why I want this: I have a kit pvp server, and I need people to be teleported to the spawn and have their clean so they do not continue with the kit they used when they return to the server inventory.

    What I want: I want a plugin that automatically teleport the player to spawn when it disconnect from the server and also clear the inventory of the same. The plugin needs to be compatible with CustomJoinItems why I need to give the kit selector to the players.

    Ideas for commands: No commands needed for that plugin!

    Ideas for permissions:
    - spawnonquit.bypass - Players with this permission will not be affected by the plugin (Default OP)

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

    timtower Administrator Administrator Moderator

    pedrinholuizf Think you forgot to translate the why I want this
     
  3. Offline

    joezilla903

    pedrinholuizf

    I think you can use this

    http://dev.bukkit.org/bukkit-plugins/firstjoinplus/

    In the Config file change to whats written in red.
    settings:
    every-join-is-first-join: true
    on-first-join:
    delay-everything-below-by: 1
    first-join-message:
    enabled: false
    fun-stuff:
    play-sound:
    enabled: false
    smoke-effect:
    enabled: false
    first-join-kit:
    enabled: false
    run-commands:
    enabled: true
    commands:
    - ci
    - menu #Or The command that gives your players the kit selector.
     
  4. Offline

    pedrinholuizf

    joezilla903 that plugin doesen't works on my server :(
     
  5. Offline

    timtower Administrator Administrator Moderator

    Could you tell why? Or post your startup log?
     
    Garris0n likes this.
  6. Offline

    Chibbey

    I could make this... It only takes a few minutes to make. So I don't understand why people are trying to give plugins already made to you when It takes a second... Brb.

    Ok I finished I didn't add teleporting to spawn cause if you got the right plugin like essentials when they join it will teleport them to spawn. heres the link the permission is the same.
    https://www.dropbox.com/s/93plvnqs0gj39k2/SpawnOnQuit.jar

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  7. Offline

    pedrinholuizf

    This isn't working =(

    timtower I'm using CJI to give the kit selector, when the player joins, it gives the items and after that it clears the inventory =(

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

    timtower Administrator Administrator Moderator

    pedrinholuizf That is a timing issue, report that to the original developers
     
  9. Offline

    Norbu10

    My First Plugin that i have made for somewhone :)

    How it works :
    with the permission : spawnonquit.bypass (You will get an Message : spawnonquit : you have the permission : spawnonquit.bypass) And you will bypass the progress :)

    With no permission it will clear your inv onjoin so it mayby will conflict but i hope that it works!

    Fixed!

    Fixed it again!! + Buggs Fixed!!
    Download :

    https://www.dropbox.com/s/rfiief5jkbwmmlz/SpawnOnQuit.jar

    If it doesn't Work Please say it im new in development so i think this is right!

    Sorry Tim :p Its my first bukkit public plugin :) it was so easy to make! So I Could not let it go :p

    Is it working?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  10. Offline

    timtower Administrator Administrator Moderator

    He hasn't been online yet :p
     
  11. Offline

    Norbu10

    :\ I will give you the code in PM :)

    That version of me above is not buggy anymore :)
    If you leave you will teleport to the servers spawn and clear your inventory so it Can't Conflict with CJI
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016

Share This Page