[ADMN] PlgSetspawn v5.0 - /setspawn and /spawn for OPs [1.4]

Discussion in 'Plugin Releases' started by Plague, Jan 30, 2011.

     
  1. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    PlgSetspawn - Plugin for /setspawn and /spawn only:
    Version: v5.0

    This plugin just gives /setspawn to OPs and /spawn to all, nothing more nothing less.
    It uses bukkit internal permission system.
    As in all my plugins, you can now edit the name of commands in plugin.yml.

    Permissions:
    • plgsetspawn.spawn for /spawn command (default all)
    • plgsetspawn.setspawn for /setspawn command (default op)

    Download(source inside)

    [IMG]

    Changelog:
    Version 5.0:
    • Added bukkit permissions (spawn for all, setspawn for OPs by default)
    • Thanks @McAndze for showing me how to implement them easily :)
    Version 4.1
    • updated internals, should work on every MC build supported by bukkit now
    Version 4.0
    • uses onComand - CB 454+ compatible
    • you can now edit plugin.yml and change command names via "aliases:"
    Version 3.0
    • Updated for Minecraft 1.3 and craftbukkit 432
    Version 2.1
    • /spawn for everyone, /setspawn for OPs
    Version 2.0
    • updated craftbukkit API
    • you now /spawn on the exact location even if there are blocks above
    Version 1.0
    • Initial release

    This post has been edited 4 times. It was last edited by Plague Sep 24, 2011.
  2.  
  3. Offline

    BloodyDie

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    if non op i'm use godmode i'm get the command am write
  4. Offline

    Rmoran

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Does this make a "safe zone" around the spawn? Users say they can't remove blocks in that area but I can as an OP. Can I disable this?
  5. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    That's how Minecraft works by default, edit bukkit.yml, there is a spawn-protection value
  6. Online

    Kohle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Plague I though only two previous versions should be out and open and the rest should be in a spoiler :p
  7. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    No, two last versions have to be outside a spoiler, the rest is up to you.
  8. Online

    Kohle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Oh ok
  9. Offline

    IronPixel

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    The plugin seem work and the message comes up "spawn set", but we still spawn at the same place as we were before. There is no error message, it just doesn't work :/
  10. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    just tested, works for me. You must have some other plugin conflicting.
  11. Offline

    IronPixel

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Seems like my last comment somehow didn't get posted. However I figured out the problem; the setspawn of multiverser overwrote your plugin so i had to change that to make it work. Everything is fine now :)
  12. Offline

    Edvardas96

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    So with this plugin you can change the default spawn to somewhere else? If i setspawn with this plugin a new player that connects to the server will spawn in the set spawn?
  13. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    exactly
  14. Offline

    Edvardas96

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Tested the plugin, perfect!!! Exactly what I was looking for, great job.
  15. Offline

    Harrisson

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    does this spawn everyone to the same place too?
    plz answer
  16. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    well it does spawn like the original minecraft spawn so you do spawn in the same area centered around the same point, but the spawn is randomized
  17. Offline

    Harrisson

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    thanks for the answer!
  18. Offline

    TheArcher

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Would you please give players the ability to use "/spawn" but not "/setspawn"?
  19. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    That's how it should work
  20. Offline

    TheArcher

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I got it to work.

    For uniformity's sake when you aren't an "OP" and type "/setspawn" could you just not display a message and keep it blank?
  21. Offline

    leiger

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    A request: Is it possible to take into account the direction the player is facing and store that as part of the spawn?

    I'm not sure about death, but when I use the /spawn command I end up facing the opposite direction to where I was looking while typing /setspawn.
  22. Offline

    GhostMole

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    so does this not actually set the real spawn for the world?
  23. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    That's a limitation of Minecraft spawnpoint.

    yes
  24. Offline

    GhostMole

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    :D thanks plague thats awsome this is exactly the plugin i was looking for :D. Also i have been looking into writing code for plugins and such and i was wondering how hard you estimate it is to write a simple plugin like one that would set spawn or make your typing have colors in it. So far i have gotten most of the math portion of writing code down and i have been following the undead coders or whatever there name was and it has been really helpful but i would like to know from a real plugin developer how long making a plugin and coding for it takes.
  25. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    depends on your coding skill and how good you know bukkit API, so I cant really tell you without knowing you
  26. Offline

    GhostMole

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    oh hahahaha welll i dont know shit im still learning the basics
  27. Offline

    Hamad

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    so.. i got exact spawn, i know it makes player spawn in the right place but i am thinking, does ur plugin makes ppl spawn there when they die, like the normal one tp ppl back home and i need them to go back to spawn, u know read the rules again :D
  28. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yes this is the normal spawn, the one you have in minecraft without bukkit, so it ports you there when you log in and when you respawn after death.
  29. Offline

    Hamad

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    ok thanks :)
  30. Offline

    leiger

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ah, okay. Guess there's not much you can do about it then.

    Please add this (i.e. spawn facing a certain direction) in future if it ever becomes possible.

    Thanks! :)
  31. Offline

    Zothen

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I need some help!

    Weve set an exact spawn with this plugin (CB1000, 4.1, op version) and now Ive tried to move it to our 2nd world. Ive just used /setspawn to the new location but suddenly it does no longer spawn players that join for the first time to that exact position, but scatters them around it! (no changes made to the setup at all)

    Also, Ive tested it with a new server setup that has just a permission plugin and PlgSetspawn (op version) and the new players still scatter?

    Can somebody explain me whats doing wrong? How can I set that exact spawn point again?

    thanks in advance!
  32. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This plugin never set an exact spawn, always the "scattering" one.

Share This Page