Filled No quit on specific world

Discussion in 'Archived: Plugin Requests' started by Crowley_, Jul 8, 2014.

  1. Offline

    Crowley_

    Plugin category: Admin Tools, Teleportation;

    Suggested name: No Quit Here

    What I want: A plugin that teleports a player (on their next login) to the spawn point, if the player quit in a world specified in the config file.

    Commands: none

    Permissions (optional): noquithere.bypass or noquithere.ignore. The player will be ignored by the plugin
     
  2. Offline

    Crowley_

  3. Offline

    EnderTroll68

    Spawn point meaning the essentials spawn point?
     
  4. Offline

    Crowley_

    Yes
     
  5. Offline

    kps1796

    If you can get the X, Y, and Z of the spawn point, I can probably do this.
     
  6. Offline

    Crowley_

    The spawn coords: x: 43 y: 70 z: 30. What if I want to change the coords later?
     
  7. Offline

    jacklin213

    kps1796
    Code:
    Location spawn = player.getWorld().getSpawnLocation();
    spawn.getX();
    spawn.getY(); etc.....
    
    Don't forget the pitch and yaw
     
    timtower likes this.
  8. Offline

    kps1796

    All done!
    You can set the spawn world and co-ordinates in the config :D
    It'll eventually be http://dev.bukkit.org/bukkit-plugins/noquithere/ (you can go to this page for instructions), but that's still awaiting approval so here's the .jar directly:
    http://dev.bukkit.org/media/files/799/589/NoQuitHere.jar
    Tested and working on my server with CB 1.7.9-R0.2. Let me know how it works on yours!
    :D

    Crowley_ I can just set it to be the world's spawn point if you want.

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

    Crowley_

    kps1796 Thank you, it worked perfectly! :D
     
  10. Offline

    kps1796

    Crowley_ Good to hear! Let me know if there's anything you need added.
     
    Crowley_ likes this.

Share This Page