[READ FIRST] What can plugins do?

Discussion in 'Plugin Requests' started by Baummann, Jun 23, 2011.

     
  1. Offline

    Baummann

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This post is now outdated and replaced by the below link:
    http://forums.bukkit.org/threads/read-me-first-plugin-requests-guide.81209/


    Before you request a plugin you should read this:

    What plugins are not able to do:
    • Create a new block.
    • Create a new item.
    • Create a new weapon.
    • Create new armor.
    • Create new food.
    • Show a picture to a player (except maps).
    • Show a video to a player (except maps).
    • Push things in a smooth movement like the original pistons. (Could be possible with Beta 1.7)
    • Create a new monster.
    • Create a new animal.
    • Change the size of a mob.
    • Check if a player has a texture pack/mod installed.
    • Play music/a sound (Would require an Audio Client, Existing Noteblock sounds can be played).
    • Force a player to join (except NPCs).
    Please post things I missed on the list.

    Plugins are only able to modify what a server can do. Not what the game can do.

    If your plugin you want to request has to be able to do one of those things, then please don't bother a plugin developer with reading your post.


    Thank you for reading this.

    This post has been edited 3 times. It was last edited by mbaxter Jun 16, 2012.
  2.  
  3. Offline

    ChrizC

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Very helpful and definitely should prevent some bad requests!

    Stickied.

    Chris
  4. Offline

    Adamki11s

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You should just edit your post a little to make it clear that this is only temporary. When a client mod comes out these things will be possible :D. A very helpful post though!
  5. Offline

    Pencil

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

  6. Offline

    Baummann

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Pencil ItemCraft runs mods as a plugin. This is about normal plugins.
  7. Offline

    Pencil

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It's a plugin, and in the end there are more blocks :p You can't deny that
  8. Offline

    7rmb7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Isn't that called a ban?
  9. Offline

    Baummann

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    oh yeh
  10. Offline

    7rmb7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yes, but plugins that require client mods are not supported.
  11. Offline

    Pencil

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It's in release, it adds items, at least he should add a note that it's possible..

    Oh :p He did ^^
  12. Offline

    Wakko

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Well ItemCraft is able to do that stuff only because everyone needs to have client mods to connect to the server.
    It's still not possible in the server itself without client-side mods right now.
  13. Offline

    nisovin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    All of those (Except the ItemCraft plugin) notes make this list more confusing. Just put a note at the bottom that says something like "A client mod can make many of these things possible." Then add a link to ItemCraft, and perhaps BukkitContrib.
  14. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Baummann
    Well, you can force a player to sleep.

    Code:
    ((CraftPlayer) player).getHandle().a(x, y, z);
    
    Where x, y, z are the coordinates of the HEAD of the bed.
  15. Offline

    Baummann

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Edited. But does it also work at day?
  16. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Baummann
    Well, this function only emulates player clicking the bed.

    For enforcing them to sleep even when it's day, it should be probably something like (not tested)
    Code:
    EntityPlayer ePlayer = ((CraftPlayer) player).getHandle();
    EntityTracker entitytracker = ePlayer.b.getTracker(ePlayer.dimension);
    Packet17 packet17 = new Packet17( ePlayer , 0, i, j, k);
    
    entitytracker.a(ePlayer, packet17);
    ePlayer.netServerHandler.a(ePlayer.locX, ePlayer.locY, ePlayer.locZ, ePlayer.yaw, ePlayer.pitch);
    ePlayer.netServerHandler.sendPacket(packet17);
    
  17. Offline

    Baummann

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Oh ok. Are i j and k the location?
  18. Offline

    Acrobot

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

    bleachisback

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You might want to specify what you mean on this one, because you can in fact play the sounds and music that are already in the game.
  20. Offline

    Vaupell

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    First part = depressing,

    Part about players need a mod to play = SWEET, that is fine..
    So a complete new item consists of a "server side plugin" AND (&&) a "client side mod"

    I dont see the problem in demanding if players want full pleasure of the server you need a sertain mod.
    I see many servers recomending special textures and mods allready.

    Which means there is hope for a Bukkit server running something similar to Buildcraft ;)

    TY for your very informative post.. It was enlightening.
  21. Offline

    nickguletskii

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It is a bukkit mod, not a plugin.
  22. Offline

    Baummann

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    EntityPlayer, EntityTracker, Packet17 and CraftPlayer cannot be resolved to a type.

    Code:java
    1. entitytracker.a(ePlayer, packet17);
    2. ePlayer.netServerHandler.a(ePlayer.locX, ePlayer.locY, ePlayer.locZ, ePlayer.yaw, ePlayer.pitch);
    3. ePlayer.netServerHandler.sendPacket(packet17);

    Works fine.

    The whole code:
    public void onPlayerInteract(PlayerInteractEvent event) {
    if (event.getClickedBlock().getType() == Material.BED_BLOCK) {
    Location loc = event.getClickedBlock().getLocation();
    Player player = event.getPlayer();
    EntityPlayer ePlayer = ((CraftPlayer) player).getHandle();
    EntityTracker entitytracker = ePlayer.b.getTracker(ePlayer.dimension);
    Packet17 packet17 = new Packet17(ePlayer, loc.getX(), loc.getY(), loc.getZ());

    entitytracker.a(ePlayer, packet17);
    ePlayer.netServerHandler.a(ePlayer.locX, ePlayer.locY, ePlayer.locZ, ePlayer.yaw, ePlayer.pitch);
    ePlayer.netServerHandler.sendPacket(packet17);
    }
    }

    Red text = wrong code

    Do I need scrap bukkit or something?
  23. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Baummann
    You need CraftBukkit to compile this. Also, you need to import it.
  24. Offline

    Baummann

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

    chaseoes BukkitDev Staff

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

    Baummann

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

    mercnet

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    The question is, when will notch release the mod API so we can start converting these into mc mods? My question is... wouldn't this make bukkit/canary obsolete?
  28. Offline

    gbear605

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    3. It doesn't actually require Spout(bukkitContrib) at heart, its a feature of part of zombe's mod, its not sensing if the mod is installed.
    The API is releasing the sourcecode, and it wouldn't make bukkit obselete, because bukkit offers easier to install, plus better ways to connect.
  29. Offline

    jasvecht

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Has Notch ever done a good job when it comes to SMP? :p



    Half of this list is or will be possible thanks to Spout and whilst you can argue Spout isn't natively supported and some of the features require a client sided modification, truly the whole barrier around it seems to have been brought down and Developers are adopting it rather quickly...

    The goal of this is to keep the requests feasible right? Make sure nothing impossible is requested?

    Well, I dare say, like Spout or not, but it made it possible without making a chaos out of Bukkit.

    This post has been edited 1 time. It was last edited by jasvecht Aug 8, 2011.
  30. Offline

    Musaddict

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Lol this whole thread needs to be inactive and re-written, Spout enables everything on this list to be done (except for maybe forcing a player to join). Yeah, spout is a dependency for these to work, but still, every single one of these things CAN be done now through a plugin.
  31. Offline

    Baummann

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    That's not true. You can't add new items, blocks or entities using Spout as far as I know. And the title says plugins not spout plugins.

Share This Page