Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

teleport player on PlayerQuitEvent

Comments in 'Plugin Development' started by Creeperface, Jun 28, 2015.

  1. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    i teleport player on PlayerQuitEvent but after join, player is still on the same place where left. why? or how to make it?
  2. Kvetinac97
    Offline

    Kvetinac97 Active Member Plugin Developer

    Joined:
    Nov 17, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    Kvetinac97
    I think that teleporting player onPlayerJoinEvent event has the same role (stejný účinek)
  3. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    ano jenže já nechci teleportovat každého hráče a tudiž bych to musel ukládat bud do databáze nebo do konfigu a to se mi nechce když by to mělo fungovat i na QuitEventu :D
  4. Kvetinac97
    Offline

    Kvetinac97 Active Member Plugin Developer

    Joined:
    Nov 17, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    Kvetinac97
    asi tak no... taky mě to hned napadlo
  5. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    You're trying to teleport them after they're gone?? Who are you trying to teleport? :D Teleport on a PlayerJoinEvent! You cant do it on PLayerQuitEvent cuz that player will be already gone when you gona try to telport him
    EvolSoft and CrazedMiner like this.
  6. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    But i think player position is saved in player.dat so how can i change it using plugin?
  7. PixelGuy75
    Offline

    PixelGuy75 Notable Member Plugin Developer

    Joined:
    Feb 9, 2014
    Posts:
    316
    Plugins:
    2
    Minecraft User:
    PixelGuy75
    I think it's the same problem with teleporting on PlayerJoinEvent.
  8. Tethered_
    Offline

    Tethered_ Active Member Plugin Developer

    Joined:
    Jun 24, 2014
    Posts:
    178
    Plugins:
    2
    Minecraft User:
    Frostbyte58
    Use PlayerRespawnEvent instead
    Primus likes this.
  9. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    But when player use "back to menu" instead of respawn so it is not respawn event
  10. wolfdale
    Offline

    wolfdale Active Member Plugin Developer

    Joined:
    Dec 3, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    ace
    Use PlayerLoginEvent
    luca28pet likes this.
  11. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    PlayerRespawnEvent is fired when the player joins. This is a new API change.

    Always modify the spawn position in PlayerRespawnEvent.
  12. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    But when is server offline when player is away so i need to save data. So is not there another way how to make it on leave?
  13. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Have you tried using teleportImmediate?
    PEMapModder and LDX like this.
  14. CreeperFace001
    Offline

    CreeperFace001 Banned

    Joined:
    Jun 29, 2015
    Posts:
    11
    Minecraft User:
    Creeperface001
    thanks! :D i try it
  15. CreeperFace001
    Offline

    CreeperFace001 Banned

    Joined:
    Jun 29, 2015
    Posts:
    11
    Minecraft User:
    Creeperface001
    really banned??? -,-
    - no reason
    - no time
    Typical for pocketmine...
  16. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    I was shocked too when i saw you banned. Why they did'nt send you email?
    iDirtPlayzMC and CreeperFace001 like this.
  17. CreeperFace001
    Offline

    CreeperFace001 Banned

    Joined:
    Jun 29, 2015
    Posts:
    11
    Minecraft User:
    Creeperface001
    maybe it is because i posted thread about ColorMatch because they delete it but other users post their plugins here too sometimes but they are not banned
  18. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    This time read rules xD
  19. CreeperFace001
    Offline

    CreeperFace001 Banned

    Joined:
    Jun 29, 2015
    Posts:
    11
    Minecraft User:
    Creeperface001
    yes but they should send me an email with reason and time
  20. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    yes i cant see reason and when will ban lift

Share This Page

Advertisement