[Formatted] Spawn for world

Discussion in 'Archived: Plugin Requests' started by Nazerb, Mar 12, 2012.

  1. Offline

    Nazerb

    Plugin category: Spawning, Admin

    Suggested name: Worldspawner

    A bit about me: Just a server in need of hopefully a small plugin.

    What I want: This is for when a player logs in, so if they login in a certain world they get teleported to the spawn. It does not matter if the player has been on the server before just if they login on that world.

    Ideas for commands: /setworldspawn

    Ideas for permissions: setting the spawn (setworldspawn: true)?

    When I'd like it by: When ever, but im guessing it would not be to hard to make.

    Similar plugin requests: None, if you see any plugins which do this tell me, i can't find any.

    Devs who might be interested in this: Noidea at all. ah well. Anyone?
     
  2. Offline

    Nazerb

    Bump - noone?
     
  3. Offline

    Josvth

    I felt kinda bad that no one was willing to make this plugin. So I made it for you. :) I didn't had much time to test so if you could do that for me.

    Link!

    commands:
    setfixedspawn:
    description: Sets the fixed spawn of this world.​
    usage: /setfixedspawn​
    aliases: sfs​
    unsetfixedspawn:
    description: Unsets the fixed spawn of this world.​
    usage: /unsetfixedspawn​
    aliases: usfs​
    tpfixedspawn:
    description: Teleports you to the fixed spawn location of this world.​
    usage: /tpfixedspawn​
    aliases: tpfs​

    permissions:
    fixedspawn.setfixedspawn:
    description: Allows you to set and unset the fixed spawn location.​
    default: op​
    fixedspawn.tpfixedspawn:
    description: Allows you to teleport yourself to the fixed spawn location.​
    default: op​
     
  4. Offline

    Nazerb

    Oh, gosh now it is my turn to say sorry, which I am. I managed to get multiworld to be able to do this for me.

    I'm so sorry about this,
    Nazerb

    P.S. I hope you you did not spend to much time on it, or it helped you learn something.
     
  5. Offline

    Josvth

    No problem man! I had all the code already it was just a matter of putting the pieces togetter. Good luck with your server!
     
  6. Offline

    Nazerb

    Wait i now need it again, since mv spawn broke again!

    An internal error occured when i typed it! :/
    16.03 23:32:39 [Disconnect] User RedSheep15 has disconnected, reason: disconnect.endOfStream
    16.03 23:32:39 [Server] INFO Connection reset
    16.03 23:32:38 [Server] INFO Disconnecting mw31014 [/70.139.43.128:59662]: You are not white-listed on this server!
    16.03 23:32:33 [Server] WARNING mw31014 was kicked for floating too long!
    16.03 23:32:19 [Server] INFO... 9 more
    16.03 23:32:19 [Server] INFOat org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
    16.03 23:32:19 [Server] INFOat java.lang.reflect.Method.invoke(Method.java:601)
    16.03 23:32:19 [Server] INFOat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    16.03 23:32:19 [Server] INFOat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    16.03 23:32:19 [Server] INFOat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    16.03 23:32:19 [Server] INFOat me.Josvth.FixedSpawn.FixedSpawn.onJoin(FixedSpawn.java:97)
    16.03 23:32:19 [Server] INFO Caused by: java.lang.NullPointerException
    16.03 23:32:19 [Server] INFOat net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    16.03 23:32:19 [Server] INFOat net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
    16.03 23:32:19 [Server] INFOat net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554)
    16.03 23:32:19 [Server] INFOat net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:61)
    16.03 23:32:19 [Server] INFOat net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:41)
    16.03 23:32:19 [Server] INFOat net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:128)
    16.03 23:32:19 [Server] INFOat net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:135)
    16.03 23:32:19 [Server] INFOat org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:441)
    16.03 23:32:19 [Server] INFOat org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    16.03 23:32:19 [Server] INFOat org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
    16.03 23:32:19 [Server] INFO org.bukkit.event.EventException
    16.03 23:32:19 [Server] SEVERE Could not pass event PlayerJoinEvent to Fixed Spawn
    16.03 23:32:19 [Multicraft] RedSheep15 ran command Message of the Day
    16.03 23:32:19 [Connect] User RedSheep15, IP 81.5.149.89
    16.03 23:32:09 [Disconnect] User jam920 has disconnected, reason: unknown
    16.03 23:32:04 [Server] INFO Disconnecting jam920 [/98.195.74.210:58206]: You are not white-listed on this server!
    16.03 23:32:02 [Server] INFO CONSOLE: Added mickdebree to white-list
    16.03 23:31:55 [Server] INFO Disconnecting jam920 [/98.195.74.210:58187]: You are not white-listed on this server!

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

    Josvth

    That's a pretty big error log you have there . :) I forgot to add 1 line of code causing this. Everything seems to work fine with this build.
     
  8. Offline

    Nazerb

    Great it even only does this on the first world which is perfect. :D
     
  9. Offline

    Josvth

    Good to hear!

    You van have multiple worlds. Only the ones that you've used the command in will have a fixed spawn.
     
  10. I will be using this also! Thank you very much Joshvth!
     

Share This Page