Filled insta spawn

Discussion in 'Archived: Plugin Requests' started by kaketoe, Apr 4, 2013.

  1. Offline

    kaketoe

    Plugin category: TP

    Suggested name: instajoinspawn

    What I want: a plugin that wil tp you to the spawn point from essentials and everytime you join the server you wil be teleported to the spawn


    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: instaspawn.bypass
     
  2. Offline

    timtower Administrator Administrator Moderator

    Any command on join will do I guess? ( just to help others )
    Dutch : Het is een simpel idee, als ik tijd heb en het is nog niet gemaakt dan maak ik het wel voor je ;)
     
  3. Offline

    LaxWasHere

    Code:java
    1.  
    2. @EventHandler
    3. public void onPlayerJoin(PlayerJoinEvent event) {
    4. Player p = event.getPlayer();
    5. if (p.hasPlayedBefore()) {
    6. p.teleport(p.getWorld().getSpawnLocation());
    7. }
    8. }

    Go compile.
     
  4. Offline

    timtower Administrator Administrator Moderator

    LaxWasHere
    Code:java
    1.  
    2. @EventHandler
    3. public void onPlayerJoin(PlayerJoinEvent event) {
    4. Player p = event.getPlayer();
    5. p.teleport(p.getWorld().getSpawnLocation());
    6. }

    Think this will do
     
  5. Offline

    caelum19

    I don't think most people requestng plugins will have a compiler :p



    @kaketo

    "When I'd like it by: ASAP" I think it's best to not include that... it makes you seem kinda bossy.
     
    C0nsole likes this.
  6. Offline

    kaketoe

    that would be nice,
    maybe /instaspawn reload or something

    is somebody now busy with this plugin?
     
  7. Offline

    timtower Administrator Administrator Moderator

    Download
    Default command is spawn, don't place an slash in the config, or else it will say unknown command every time XD
    There is no bypass though
     
  8. Offline

    kaketoe

    nice, but could you do it that you are at spawn if you join?
    so it there's no delay before teleporting and it wont show in the chat "starting to teleport" "teleporting"
     
  9. Offline

    timtower Administrator Administrator Moderator

    kaketoe This is just an plugin that fires an command on join, but I can change it for you ;)
     
  10. Offline

    kaketoe

    that would be great
     
  11. Offline

    timtower Administrator Administrator Moderator

  12. Offline

    kaketoe

  13. Offline

    jacklin213

    Just saying there is a function of this in essentials , you just needed to turn it into true in the config
     
    Faith likes this.
  14. Offline

    kaketoe

    where do u mean?
     
  15. Offline

    aronuserparty98

    Under "EssentialsSpawn". Note, you also need to get EssentialsSpawn in order for this to work. It comes with the EssentialsCore.zip-file.

    /Aron
     
  16. Offline

    kaketoe

    i can only find this

    Code:
    ############################################################
    # +------------------------------------------------------+ #
    # |            Essentials Spawn / New Players            | #
    # +------------------------------------------------------+ #
    ############################################################
     
    newbies:
      # Should we announce to the server when someone logs in for the first time?
      # If so, use this format, replacing {DISPLAYNAME} with the player name.
      # If not, set to ''
      #announce-format: ''
      announce-format: '&dWelcome {DISPLAYNAME}&d to the server!'
     
      # When we spawn for the first time, which spawnpoint do we use?
      # Set to "none" if you want to use the spawn point of the world.
      spawnpoint: newbies
     
      # Do we want to give users anything on first join? Set to '' to disable
      # This kit will be given regardless  of cost, and permissions.
      #kit: ''
      kit: ''
     
    # Set this to lowest, if you want Multiverse to handle the respawning
    # Set this to high, if you want EssentialsSpawn to handle the respawning
    # Set this to highest, if you want to force EssentialsSpawn to handle the respawning
    respawn-listener-priority: high
     
    # When users die, should they respawn at their first home or bed, instead of the spawnpoint?
    respawn-at-home: false
    
     
  17. Offline

    aronuserparty98

    Code:
     # When we spawn for the first time, which spawnpoint do we use?
      # Set to "none" if you want to use the spawn point of the world.
      spawnpoint: newbies
    Set to "none".
    In game, type /setspawn [default group]. For example, /setspawn Guest

    /Aron
     
  18. Offline

    kaketoe

    that's only for the first time...
    i want it everytime they join
     
  19. Offline

    aronuserparty98

    Oh, sorry. Then I missunderstood your whole request. :p Sorry.

    /Aron
     
  20. Offline

    kaketoe

    thanks anyway
     
  21. Offline

    Craaaig

    This is good but when I set the spawn the player is always facing south? can you change it so whatever direction the player is standing in when you make the spawnpoint, that is the direction they will be facing when you connect to the server.
     
  22. Offline

    timtower Administrator Administrator Moderator

    Craaaig I will add an config option to change to look direction
     
  23. Offline

    Craaaig

    okay ;)
     
  24. Offline

    kaketoe

    and for some reason the player doesn't spawns in the middle of the block :/
    it doesn't realy matters but it would be good if they spawn in the middle
     
  25. Offline

    timtower Administrator Administrator Moderator

    kaketoe This is because the spawn is on the corner of the block, but will add an option for this also
     
  26. Offline

    45zeldafan

    If you use Essentials, EssentialsSpawn, and VariableTriggers, then you can make them spawn in the middle of the block.
     
  27. Offline

    timtower Administrator Administrator Moderator

    45zeldafan Or he gives me a couple of minutes to change it
     
  28. Offline

    45zeldafan

    :p
     
  29. Offline

    timtower Administrator Administrator Moderator

  30. Offline

    kaketoe

    timtower likes this.

Share This Page