[INACTIVE][TP] FirstSpawn v2.1 - Custom spawn point for first join [766]

Discussion in 'Inactive/Unsupported Plugins' started by Carbunkulous, May 14, 2011.

  1. Offline

    Carbunkulous

    FirstSpawn v2.1 - Custom spawn point for first join [766]
    Version: v2.1

    What is this plugin? Well, imagine it like a tutorial-island setup plugin. You create a nice area for people who first join to go through, have your rules setup, banned blocks, signs to tell everyone all the regulations.
    Now it'd be silly to have to go through that maze many times. So that's why I made this! It will ONLY teleport the user if they have never been on the server before. Imagine the runescape Tutorial Island type idea.
    Features:
    * Teleports first time players on your server to a custom location!
    * You can teleport to that location too!

    <Edit by Moderator: Redacted mediafire url>

    Commands:
    /setfirstspawn - Sets the first spawn location
    /tpfirstspawn - TP's to that location. If you need to TP to it for whatever reason..

    How to install:
    Version 1
    * Drag JAR into plugins folder
    * Reload/restart server
    * as op or permissioned user, do /setfirstspawn

    Permission nodes:
    * Be an operator gives you all commands
    * FirstSpawn.setFirstSpawn - Set the spawn point for first joins
    * FirstSpawn.tpFirstSpawn - Tp to where the first spawn point is.

    Change Log:
    Version 2.1
    * Suppressed checking if the user has been on before for the /tpfirstspawn command

    Version 2.0
    * Added multiworld support

    Version 1.0
    * released it!
     
    Last edited by a moderator: Dec 14, 2016
  2. Offline

    Marvin77796

    I like this idea, could you make it, that there are different spawns for Groups???
     
  3. Offline

    Phanku

    I love the idea! Question however, I see that you are storing what players have joined in a flat file.
    After about 6000+ players wouldn't that file get pretty big and wouldn't searching through it be a little intensive for file I/O?
     
  4. Offline

    gypsyluke77

    when i download i get com and plugin.yml please update or a new download link
     
  5. Offline

    sephiroth7240

  6. Offline

    Taranis01

    @Carbunkulous

    i have CB766 and FirstSpawn 2.1

    Code:
    > 02:44:21 [INFO] [FirstSpawn] I had issues reading the firstspawnloc-world1.txt file! (Common on first run)
    > 02:44:21 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:394) 
    > 02:44:21 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287) 
    > 02:44:21 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372) 
    > 02:44:21 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:87) 
    > 02:44:21 [SEVERE] at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33) 
    > 02:44:21 [SEVERE] at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:95) 
    > 02:44:21 [SEVERE] at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:94) 
    > 02:44:21 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289) 
    > 02:44:21 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59) 
    > 02:44:21 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:232) 
    > 02:44:21 [SEVERE] at com.carbunkulous.firstSpawn.FirstJoinPlayerListener.onPlayerJoin(FirstJoinPlayerListener.java:24) 
    > 02:44:21 [SEVERE] at com.carbunkulous.firstSpawn.FirstSpawnWorld.(FirstSpawnWorld.java:52) 
    > 02:44:21 [SEVERE] at java.lang.Double.parseDouble(Double.java:527) 
    > 02:44:21 [SEVERE] at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1009) 
    
    > 02:44:21 [SEVERE] java.lang.NullPointerException 
    it appears randomly at player-login!

    Another information: im using plugman and it tells me:
    the name of the plugin is "firstSpawn"
    the version is 1.0
    no authors listed and an invalid description filed

    also the plugin creates 2 folders:
    "FirstSpawn" and "firstSpawn" !
    The 2 files in "FirstSpawn" have 0 Bytes, the 2 in "firstSpawn" have some, looks like its saved there

    i just found an older log from FirstSpawn:
    Code:
    [INFO] While loading firstSpawn (plugins/FirstSpawn.jar) renamed data folder: 'plugins/FirstSpawn' to 'plugins/firstSpawn'
     
  7. Offline

    Nuinbot

    I get this same error with the two folders. After setting it up and wiping my player .dat file, it still spawns me near the regular spawn location, not the FirstSpawn location.
     
  8. Offline

    GmK

    You need to delete your player from the files in the firstspawn directory too.

    But it's glitchy indeed....
     
  9. Offline

    Nuinbot

    I got this to work after removing Essentials. Realizing that it was the /setspawn newbies command that was screwing things up, I removed it from the Essentials Spawn config file. (The Essentials Spawn file now only has a spawnpoint for default.)

    Now, on first login, I port to the specified FirstSpawn location. Typing /spawn sends me to the default spawn location specified by Essentials Spawn. Huzzah!

    Two things to note:

    First, it WILL create two folders, one called "firstSpawn" and the other "FirstSpawn". I am not sure which one it uses, but I left them both there. I believe this was just an accidental fat-fingering while coding. It saves the FirstSpawn config file in both folders, but the user file that bypasses FirstSpawn is in the latter folder.

    Second, the direction you face when you FirstSpawn. By default, it always uses west as specified by Minecraft. Essentials Spawn will let me specify direction via the cameras direction and pitch when I /setspawn. Perhaps this could be implemented into this plugin?

    Keep up the good work and thank you! :)
     
  10. Offline

    Carbunkulous

    I plan on updating this plugin to the latest bukkit build for 1.6.6 (I forget the RB#) My plans for it are:
    Look for the player.dat file instead of it's own system.
    Figure out the glitch that @Zalastri has. (If you could, please upload the two plugins/their folders and PM it to me.)

    As far as the pitch/yaw.. I'll look into it. Don't get to excited for it, but I'll look into it.
    Essentials [afaik] is really outdated, I would wait for them to update their plugin first as I feel that would fix any problems. What's odd though, is that I don't even capture the /spawn or /setspawn commands. :S

    Also, as far as overriding the first teleport. Yeah it does that. It shouldn't get to that scenario though. It should hook the onPlayerJoin and perform it then! :S (Three events are registered to the exact same code. Hmmm)

    As far as the two folder thing.. it's probably a bukkit thing. I think I named the plugin firstSpawn.jar, but it makes FirstSpawn/. I am pretty sure bukkit auto-creates a folder for you. I'll correct that on the next build.
     
  11. Offline

    Kainzo

    I'd love to see this updated - I want this before i release my new map Sunday-ish - any possibility to have a new release going @Carbunkulous?

    00:34:04 [INFO] [Heroes] Loaded hero: Kainzo
    00:34:04 [SEVERE] java.lang.NullPointerException
    00:34:04 [SEVERE] at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:989)
    00:34:04 [SEVERE] at java.lang.Double.parseDouble(Double.java:510)
    00:34:04 [SEVERE] at com.carbunkulous.firstSpawn.FirstSpawnWorld.<init>(FirstSpawnWorld.java:52)
    00:34:04 [SEVERE] at com.carbunkulous.firstSpawn.FirstJoinPlayerListener.onPlayerJoin(FirstJoinPlayerListener.java:24)
    00:34:04 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:243)
    00:34:04 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    00:34:04 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    00:34:04 [SEVERE] at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:123)
    00:34:04 [SEVERE] at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:96)
    00:34:04 [SEVERE] at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
    00:34:04 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    00:34:04 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
    00:34:04 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    00:34:04 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    00:34:04 [INFO] [FirstSpawn] I had issues reading the firstspawnloc-herostart.txt file! (Common on first run)
    >

    Tested it - does not work properly - the two folder things is confusing and it states its on Version 1.0

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

    OrtwinS

    Yea, getting this to work again would be very nice, I'll watch this thread.
     
  13. Offline

    kahlilnc

    818? I would love for this to be on my server again.
     
  14. Offline

    Ant59

    Would love to see this working so I can set my spawn underground.
     
  15. Offline

    Kainzo

    I have this currently working on Herocraft - however it needs work or a rewrite.
     
  16. Offline

    Specops343

    Could we please get an update for this? I'd really like to have it for my server release next week.
     
  17. Offline

    OrtwinS

    @Carbunkulous Hi! How are you?
    I know that we - the end users - can be a bothersome lot, whining, screaming, 'when is it done?'.
    It would be Highly appreciated if you could tell us if you are still alive, and if FirstSpawn is alive as well.

    Regards
     
  18. Offline

    Nazerb

  19. Offline

    Kainzo

    I get some very strange issues with this plugin - I can't say its working quite as intended - for the love of god a dev needs to pick this up that has time.
     
  20. Offline

    Devian50

    for this problem why not use permissions to stop the default group from executing the /spawn command and then at the end have them ask an admin to promote them?

    uhh... I have set the firstspawn with /setfirstspawn but there are no files created in the FirstSpawn folder and when I use /tpfirstspawn it says "[FirstSpawn] You have glitched the system, this world has not been cached. :S" uhh... what exactly does this mean? I have no console errors. I have no clue what is going on? I have seen many build766 plugins work on 818 and this one works *mostly* except for this odd problem? any advice is much apreciated!

    -EDIT- Huh... well it works perfectly on 818... except that it needs to have the first spawn set twice for it to work... Very odd. But for all those people out there IT WORKS ON 818!!! NO ERRORS!

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

    Dukeion

    Works great on my server, but any way you can make it so you can change the tp message?
     
  22. Offline

    blaize9

    Works for me =D no problems at all
     
  23. Offline

    Pippin

    Running 860, clean install. Permissions 3.1.5 and CommandBook for /spawn. Not working.
    Basically, I get two issues.
    1. If I restart the server, the firstspawn is lost...
    2. It isn't working for 90% of the guests joining. But if I type /tpfirstspawn, it's fine. No console errors, so I don't know whats up!
     
  24. Offline

    Ailenpangwin

    i really am in need of this plugin, however it isnt updated. it seems to work, but i get errors on my server that id rather not get. anyways, id appreciate an update. my tutorials run off this thing :). every once in a while everyone gets disconnected for whatever reason assuming its outdated though. thanks.
    -Austin
     
  25. Offline

    Kainzo

  26. Offline

    blokzeil1

    Hello :p

    Is it possibel to give a pvp protacion for players who join for the first time on the server?
    like 24 hours?
     
  27. Offline

    zamyzee

    Okay, I download the file, but it ends up giving me a folder and there's no .JAR file anywhere! help?
     
  28. Offline

    Andrewkroger1

    please update to 953!
     
  29. Offline

    Davs_Due

    Same here! :/ Can we get only the .jar???
     
  30. Offline

    efstajas


    Use "The Unarchiever" from the Mac AppStore. It can unarchive anything and is free, and it handles zipped jar- files correctly. :)
     
  31. Offline

    Davs_Due

    But why not upload the damn .jar??
     
    jamescosten likes this.

Share This Page