Inactive [TP] HeroSpawn - Spawn first time users in a different location v2.0. [1.2.3-R0.1]

Discussion in 'Inactive/Unsupported Plugins' started by shadrxninga, Jun 10, 2011.

  1. Offline

    shadrxninga

    HeroSpawn
    Version: 2.0
    CraftBukkit Version: 1.2.3-R0.1 (Works on 1.1-R6 too)
    Spawns first time users in a different location!

    Note: Essentials Spawn will break this plugin, making it useless. I am working on a fix.

    Download: Here

    Do you have a tutorial area that you have to go through every time you respawn? Not anymore!
    HeroSpawn allows you to set a new spawn point called a "HeroSpawn", so when a user joins your server for the first time, they'll spawn there instead!

    HeroSpawn 2.0 also works with multiple worlds, when I user joins a world on your server for the first time, you can send them to the "HeroSpawn" of that world.

    Features
    • MultiWorld Support (Finally :) )
    • Easy to use commands
    • Knows who's already joined! (Even before the plugin was installed)
    Commands and Permissions
    • /herospawn - Lists help for commands you have permission to use
    • /herospawn set (herospawn.set) - Sets the HeroSpawn of the world you are in to your current location
    • /herospawn tp [world] (herospawn.tp) - Teleports you to the herospawn of the world given, or the current world you are in.
    Changelog

    Version 2.0
    • Completely rewrote
    • Added multiworld support
    • Improved /herospawn tp command
    Bugs and Support
    If have a problem or find any bugs, please head over to the BukkitDev page and file a ticket and I'll try and respond as soon as possible.

    Donations
    It takes up quite a bit of my time to develop plugins, if you're feeling generous - a donation of any size would be greatly appreciated!

    You can donate using PayPal here.

    Note
    This plugin uses Hidendra Plugin Metrics to collect usage data. If you wish to opt-out from this, then take a look in the config.yml in the PluginMetrics folder and change 'opt-out' to true.
    http://metrics.griefcraft.com/plugin/HeroSpawn
     
  2. Offline

    shadrxninga

    @Joy I think reading the iConomy table would be a bit much... :p
    I will try find an alternative way of doing this though.
     
  3. Yea, it's really a small issue, just looks silly in the console ;)
     
  4. Offline

    shadrxninga

    @Joy
    Wait... I thought it stopped them from going to HeroSpawn :p and ported them to the normal spawn.
    So it just looks silly in the console?
     
  5. Yes, but I figured that could mean there's more serious issues, I haven't noticed any. As you can see in the log I posted, that person connecting is in the queue, so they can hardly be ported anywhere :p
     
  6. Offline

    shadrxninga

    What I mean is when they log in next time, they will be teleported to the normal spawn instead of the "HeroSpawn" because their player.dat file might have already been created. I'll just test that now - if that's not a problem the I can easily fix the console silliness your having :p
    EDIT:
    If they get disconnected before they join, no player.dat is created.
    Nope it's just my fault :p - I sent that message in playerlogin and not playerjoin. I'll upload a fix soon.
     
  7. Offline

    BioRage

    Does this fix the compass too?

    As int he compass points directly to the newly made herospawn?
     
  8. Offline

    Swadon

    Hello, I have this error when a player join the server and the plugin don't teleport the player at the first spawn point (the default spawn point is in the default world and the first spawn point in an another world).
    Code:
    15:12:59 [SEVERE] Could not pass event PLAYER_JOIN to HeroSpawn
    java.lang.NullPointerException
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:99
    1)
    at java.lang.Double.parseDouble(Double.java:510)
    at com.herocraftonline.shadrxninga.herospawn.HeroSpawnPlayerListener.onP
    layerJoin(HeroSpawnPlayerListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:243)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:310)
    at net.minecraft.server.ServerConfigurationManager.c(ServerConfiguration
    Manager.java:126)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:96)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:74)
    at net.minecraft.server.Packet1Login.a(SourceFile:43)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    >
    CB Build : b863

    Thank You.


    Swadon.
     
  9. Offline

    shadrxninga

    @Swadon
    Your not running a recommended build of craftbukkit. If you drop back to 860. It should still work.
     
  10. Offline

    GmK

    Plugin works absolutely perfect! Thanks for this!

    (on CB909)
     
  11. Offline

    Ailenpangwin

    it works and everything.. but when people spawn there, regardless of my direction when i set it, makes them face west (i believe it's west). This problem also occoured in FirstSpawn and im hoping that theres a way to fix it. Thanks ;)
     
  12. Offline

    Swadon

    Ok, thank you man ;)
    I will try with b860.
     
  13. Offline

    shadrxninga

    Yes, there is a way to fix this. I will change that tonight.
     
  14. Offline

    _NameLess_

    Heya ;D (first post xD)
    Same Problem here with b860...:/
    2011-06-25 19:02:33 [SEVERE] Could not pass event PLAYER_JOIN to HeroSpawn
    java.lang.NullPointerException
    at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
    at java.lang.Double.parseDouble(Unknown Source)
    at com.herocraftonline.shadrxninga.herospawn.HeroSpawnPlayerListener.onPlayerJoin(HeroSpawnPlayerListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:243)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:126)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:96)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  15. Offline

    VeryInsane

    Will this work with Newest Recommended Build #928?
     
  16. Offline

    shadrxninga

    @_NameLess_
    Welcome to the Forums :D
    I think that happens if you haven't the HeroSpawn yet with /herospawn set
    I will make it autocreate the file where it gets the location from on startup in the next release

    @VeryInsane
    I'm not sure if works with 928 or not... @Kainzo
     
    VeryInsane likes this.
  17. Offline

    Kainzo

    The commands seem to work - I've yet to delete player.dat to see if it ports - I don't see a reason for this to break on 928.
     
    VeryInsane likes this.
  18. Offline

    some1

    hey kainzo my problem is this
    2011-06-26 13:34:18 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'herospawn' in plugin HeroSpawn v0.2
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:304)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:725)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:691)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:684)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
    at java.lang.Double.parseDouble(Unknown Source)
    at com.herocraftonline.shadrxninga.herospawn.HeroSpawn.onCommand(HeroSpawn.java:116)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
    now my first spawn isnt workin :(
     
  19. Offline

    GmK

    It works perfect for me on b928-b933.

    Thank you for this cool plugin @shadrxninga
     
  20. Offline

    NEO

    Doesnt seem to be working at all for us. Using HS 0.2 and tested on CB 860/928

    I put this in a week ago and set the heospawn. Today no new users ive talked to claim to have ever spawned at the herospawn. Ive gone in and found members first joins. The cords they are logging in at is our normal spawn. We use spawnx.

    Code:
    2011-06-26 19:33:17 [INFO] Whitelist: Player Owner3000 is trying to join...
    2011-06-26 19:33:17 [INFO] allow!
    2011-06-26 19:33:17 [INFO] [HeroSpawn] Owner3000: logged in for first time. Teleporting them to First Spawn
    2011-06-26 19:33:17 [INFO] Owner3000 [removed] logged in with entity id 40621 at ([ world] 1.5, 103.62000000476837, 221.5)
     
  21. Offline

    semibreve42

    This is not working for me either. My goal was to change the first spawn to another world (not the default one), so I setup the herospawn in this other world. When new users log in the still spawn in the wrong world at the wrong spawn. If I use /herospawn while I'm in that world, it teleports me to the correct location. If I use /herospawn in my default world, I get this error "An internal error occured while attempting to perform this command" and this in the console:

    Code:
    21:24:44 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'herospawn' in plugin HeroSpawn v0.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:287)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:712)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:678)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:671)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
            at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:989)
            at java.lang.Double.parseDouble(Double.java:510)
            at com.herocraftonline.shadrxninga.herospawn.HeroSpawn.onCommand(HeroSpawn.java:116)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
    And I get this error whenever a new person joins:
    Code:
    21:39:34 [SEVERE] Could not pass event PLAYER_JOIN to HeroSpawn
    java.lang.NullPointerException
            at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:989)
            at java.lang.Double.parseDouble(Double.java:510)
            at com.herocraftonline.shadrxninga.herospawn.HeroSpawnPlayerListener.onPlayerJoin(HeroSpawnPlayerListener.java:46)
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:243)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
            at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:126)
            at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:96)
            at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    I'm running CB860 and HS0.2, thanks. I just downloaded CB860 again and reinstalled that and HS 0.2, didn't fix :-(
     
  22. Offline

    shadrxninga

    @semibreve42
    @some1
    Have you set the spawn?
    @NEO
    I will look into this. But some more information might be helpful. Can you post your plugins list as well as the file that stores the loction.
     
  23. Offline

    semibreve42

    Yes, both times. Using /herospawn in the world where i used /herospawn set correctly teleports me to the spawn, but using /herospawn in the world where the users spawn by default causes the errors.
     
  24. Offline

    JanTTuX

    not working anymore :(

    everyone will spawn as in normal spawn. not in firstspawn
     
  25. Offline

    shadrxninga

    I am working on an update at the moment

    EDIT: Kainzo has confirmed this to be working on #935

    This plugin will know if people have been on your server before it was even installed.

    If you are still having trouble please post the file that stores the spawn location.
     
  26. Offline

    JanTTuX

    Perttilandia1:
    X: '315.3335872681324'
    Y: '64.0'
    Z: '-467.81340446653485'
    and people still spawn to normal spawn location -.-
     
  27. Offline

    OZ4RK

    Will this conflict with other spawn plugins like Graveyard that allows multiple spawns?
     
  28. Offline

    shadrxninga

    It shouldn't, but it might depending on what your doing with it. Give it a try, just delete or move your .dat and login.
    What other plugins are you using? What version of CB are you on? I'm not sure why this isn't working...
     
  29. Offline

    JanTTuX

    i have RB935 permissions worldedit worldguard craftbook essentials.... alot kind of shit. and didnt work :( that outdated firstspawn plugin did work but errors.
     
  30. Could you possibly add a feature for remembering direction? Or is there a feature that I am overlooking?
     
  31. Offline

    EmanuxJade

    I have set in my another world principal spawn for new player, everytime the new player join got this error:

    on 953 build

    @shadrxninga Can u check what is it?

    Code:
    2011-07-05 05:27:20 [SEVERE] Could not pass event PLAYER_JOIN to HeroSpawn
    java.lang.NullPointerException
            at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:989)
            at java.lang.Double.parseDouble(Double.java:510)
            at com.herocraftonline.shadrxninga.herospawn.HeroSpawnPlayerListener.onPlayerJoin(HeroS$
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
            at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:12$
            at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
            at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    plugin is brooken...
     

Share This Page