Random Set Spawnpoints :)

Discussion in 'Archived: Plugin Requests' started by taintedarcher, Aug 4, 2013.

  1. Offline

    taintedarcher

    Random Set Spawns

    Hello, I am looking for a plugin that can spawn a user at a set random spawnpoints around a map.
    Currently all the plugins that do this are dead unfortunately and haven't been updated in a very long time.

    Commands needed:
    /RandomSpawnPoint Add (Name) Adds this spawnpoint to a list
    /RandomSpawnPoint Delete (Name) Removes the spawnpoint from the list.

    And thats it, each time a player will randomly spawn at one of these spawn points set by the administrator :)

    Please someone create this, i would appreciate it so much.
     
  2. Offline

    manderson93

    I could attempt this.
     
  3. Offline

    taintedarcher

    That would be great :) I think the random spawn could be done with a percent chance but what do I know, your the dev :)
     
  4. Offline

    manderson93

    My attempt.
    http://www.4shared.com/file/GncxwowT/RandomSpawns.html

    Command: /randomspawn <add:delete> <name>
    Permissions: RandomSpawns.addSpawn, RandomSpawns.deleteSpawn

    you can also use /rs instead of /randomspawn
    if you do /rs without any args, it'll display a list of the spawns.
     
  5. Offline

    snivell

    I have been waiting for someone to ask for this plugin.
     
  6. Offline

    taintedarcher

    Thank you so much, I will go try it now!
    You gonna slap this on bukkitdev or? :p

    Thanks :), I tried it but I am not quite sure whats overriding the spawn points. I think it might be essentials or the default /spawn commands

    Edit: Worked PER-FECT-LY. I had to remove essentialsspawn.jar and it does exactly what I requested :) Thank you so much for spending spending your time to assist me. Kudos to you sir!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
  7. Online

    timtower Administrator Administrator Moderator

    There are no default /spawn commands...
    It is essentials or your multiworld-plugin ( if you have one )
     
  8. Offline

    taintedarcher


    As you can see I had already edited my previous post :p
     
    timtower likes this.
  9. Online

    timtower Administrator Administrator Moderator

    Was after my post :p
     
  10. Offline

    taintedarcher


    I know this might be a bit late but could you also add the command "/randomspawn spawn" that will randomly spawn you as well? Just so players can type it too :) If not I thank you for taking the time and effort to make this! it has made such a difference to my server :)
     
  11. Offline

    manderson93

  12. Offline

    AZUMIKKEL


    Hello, I am looking for a plugin that does exactly what you've made. Sadly your plugin doesn't seem to work for me. When I start the server, it throws an error message and doesn't load the plugin.
    Code:
    2013-08-19 19:49:58 [INFO] This server is running CraftBukkit version git-Bukkit-1.6.2-R0.1-b2838jnks (MC: 1.6.2) (Implementing API version 1.6.2-R0.1)
    2013-08-19 19:49:58 [SEVERE] Could not load 'plugins\RandomSpawns.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/hotmail/mattanderson776/RandomSpawns/RandomSpawns : Unsupported major.minor version 51.0
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
    at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugins(CraftServer.java:239)
    at org.bukkit.craftbukkit.v1_6_R2.CraftServer.<init>(CraftServer.java:217)
    at net.minecraft.server.v1_6_R2.PlayerList.<init>(PlayerList.java:56)
    at net.minecraft.server.v1_6_R2.DedicatedPlayerList.<init>(SourceFile:11)
    at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:106)
    at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391)
    at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
    Caused by: java.lang.UnsupportedClassVersionError: com/hotmail/mattanderson776/RandomSpawns/RandomSpawns : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
    ... 9 more
    I tried with both CraftBukkit-1.5.2-R1.0 and CraftBukkit-1.6.2-R0.1.

    A second question; does it override bed spawns? I would like to have players spawn at a random spawnpoint, unless they've slept in a bed and the bed isn't broken.
     
  13. Online

    timtower Administrator Administrator Moderator

  14. Offline

    AZUMIKKEL


    Thanks. At the moment, when a player joins the server for the first time, they don't spawn at one of the spawnpoints, but rather near the center of the map. Is it possible to change that, and also make it so you can still set your own spawn by using a bed?
     
  15. Offline

    AZUMIKKEL


    Alternatively, I haven't touched Java in my life, but can you upload the source so I can try and do it myself?
     
  16. Online

    timtower Administrator Administrator Moderator

    You know that I didn't make this plugin? No need for quoting me, you need to update your java: http://java.com/download/
     
  17. Offline

    AZUMIKKEL

    My mistake, thought you were the same guy who made the plugin. I already have the plugin working, no need for updating java.

    Can you upload the source?
     
  18. Online

    timtower Administrator Administrator Moderator

    Decompile it?
     
  19. Offline

    AZUMIKKEL

    If I decompile it, won't the function/variable names be changed to placeholder names, making it harder for me to understand the code?
     
  20. Online

    timtower Administrator Administrator Moderator

    You will get back the original source, including any comments etc
     
  21. Offline

    AZUMIKKEL


    Oh alright, thank you.
     
  22. Offline

    Janmm14

    AZUMIKKEL
    no, the comments are not saved in jar file, unless the source is packed in it.
    Normally variable names and such things are included to have it easy to cancel bugs. But you can uncheck this then creating the jar file.
     
  23. Online

    timtower Administrator Administrator Moderator

    You are right, my bad
     
  24. Offline

    AZUMIKKEL

    Been going at it for 5 hours without any luck. I give up :/
     

Share This Page