[INACTIVE][FUN] BlockHead v0.3.4 - a simple plugin for putting blocks on your head [677]

Discussion in 'Inactive/Unsupported Plugins' started by Zand, Jan 19, 2011.

  1. Offline

    Zand

    Newest Version can be found Here

    BlockHead - Reply to last sent/received /msg:
    Version: v0.3.4

    This is a rewrite of my ZandsHat plugin for hay0. It adds the commands "/hat" and "/blockhead" witch will put the currently held block on your head.

    [​IMG]

    Supported Plugins:
    The following plugins are supported but not needed.
    • Permissions - 'blockhead.hat' for "/hat", 'blockhead.hat.items' for "/hat [block id]", 'blockhead.hat.give.players.items' for "/hat [player] [block id]" and, 'blockhead.hat.give.groups.items'.
    Features:

    • The use of "/hat" place the block in-hand on your head
    • The use of "/hat [block id]" to place that block id on your head
    • The use of "/hat [player] [block id]" to place a block on another players head
    • The use of "/hat group [group] [block id]" to places blocks on all the players in that group
    Download

    Source Code

    Changelog:
    Version 0.3.4

    • Fixed Null pointer bug with items like torches.
    Version 0.3.2
    • Added support for console commands.
    • Added support for block names instead of IDs.
    Version 0.3.1
    • Updated fixed a bug where the item on the players head is of 0 quantity.
    Version 0.3.0

    • Updated for CraftBukkit 493.
    Version 0.2.3

    by verrier
    • Updated for latest bukkit (Bukkit 109 / CraftBukkit 232).
    Version 0.2.2

    • Added support for colored cloth.
    Version 0.2.1

    • Added "/hat group [group] [block id]".
    Version 0.2

    • Added support for the Permissions plugin.
    • Fixed a typo.
    • Shortened help text to fit 1 line.
    Version 0.1

    • Added /hat [player] [item id] and /hat [item id].
    • Added color to the messages.
     
    silentdojo and rakiru like this.
  2. Offline

    Zand

    Yes you just put it into the plugins folder.

    I have downloaded the jar and tested it with build [141] but I was unable to find a problem.
     
  3. Offline

    DiViD

    Nice Work Zand! Definitely a awesome plug-in. I'll fire this plug-in up next time I have my server running. So much uni work at the moment :S
     
  4. there aint .jar file only foders and .class files
     
  5. Offline

    Phantom Index

    Can you give a config file that could possibly remove the block from inventory when taken out of helmet slot? or limit what items can be used?
     
  6. Offline

    r42xer

    Are the blocks on heads subject to breaking, or being interacted with? (LOL A MOVING WORKBENCH)
     
  7. Offline

    Anoniempje

    how do i remove a hat?
     
    Nero-San likes this.
  8. Offline

    koda

    +1

    EDIT: OMG, Anoniempje, open your inventory e take off the item that should on your helmet... we're kind slow, haha! :p
     
  9. Offline

    EvilSeph Retired Staff

  10. Offline

    Kainzo

    This plugin does NOT work on 232 in the latest revision.
     
  11. Offline

    Zand

    I have changed to use the template, if it still dose not meat the guidelines give me a reply.

    Its seems you ended up opening the jar file with a compression tool.

    Tested and is in use with build 252. Give me a reply if it still dosen't work.
     
  12. Offline

    panderiz

    Using built 254 and I get the following error in console when I try /hat with a block in hand.
    java.lang.NoSuchMethodError: org.bukkit.inventory.ItemStack.getDamage()B
    at com.bukkit.zand.blockhead.BlockHeadPlayerListener.placeOnHead(BlockHeadPlayerListener.java:162)
    at com.bukkit.zand.blockhead.BlockHeadPlayerListener.onPlayerCommand(BlockHeadPlayerListener.java:138)
    at org.bukkit.plugin.java.JavaPluginLoader$3.execute(JavaPluginLoader.java:133)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:213)
    at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:590)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:563)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    at net.minecraft.server.NetworkManager.a(SourceFile:232)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:71)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:283)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
     
  13. Offline

    Zand

    Thanks it turns out that version I was testing was not being updated.
     
  14. Offline

    Kainzo

    Going to give this a go on version 304 tonight
     
  15. Offline

    Mister Tickles

    This is really fun, but glitched.

    For instance; wear a block, then unequip it and try to stack said block onto another pile of the same type in your inventory. It just vanishes. Also, if you unequip a hat, you can't wear it again. It says you're not holding a block.

    Also, you can't place down a block that you had worn and removed.
     
  16. Offline

    Kainzo

    No blockhead dont you die on me!
     
  17. Offline

    PandaVidya

    does block head still work?
     
  18. Offline

    ThomasJ

    Just a heads up
    Blockhead will not work at all on newer builds as of tonight :(
     
  19. Offline

    silentdojo

    Zand is busy with college. The source is available in the OP. Maybe someone can fix it for him in the meantime.
     
  20. Offline

    zergilng

    plz update for #493 T.T
     
  21. Offline

    Zand

    While collage was a good guess I have been unavailable do to losing my Internet phone due to my financial situation. I have tried to update to 493 but failed. I got to the point of cutting the code down to
    Code:
    package com.bukkit.zand.blockhead;
    
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.plugin.java.JavaPlugin;
    
    /**
     * BlockHead for Bukkit
     *
     * @author zand
     */
    public class BlockHead extends JavaPlugin {
    
        public void onEnable() {}
    
        public void onDisable() {}
    
        @Override
        public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
         return false;
        }
    }
    and that compiles but fails to load. Ill might have more time to look into what has changed next week but in the mean time the source code is available and I have no problem with derived version as long as the modified source code is available.
     
  22. Offline

    drdanick

    The *.bukkit namespace is sealed, which is probably why it is not loading. I recommend using com.zand.blockhead
     
  23. Offline

    Zand

    Updated for build 493.
    Had to reinstall eclipse as it was failing to compile without any warnings.
     
  24. Offline

    silentdojo

    Awesome! Everyone will be happy.
     
  25. Offline

    Juze

    Yup, great to have this update, I noticed it 15 mins ago. :)
     
  26. I love this. Originally found this by over stuffing your inventory in hmod.
    ex: /item [item id] [insert absurd amount number]

    So glad to see it as a simple command here on bukkit. TY.
     
  27. Offline

    Adam Shefki

    Is the /hat group [group] [block id] command persistent? By which I mean, will the hat remain if the players in question die, or relog, or the server restarts?
     
  28. Offline

    rad1game

    Hey, nice plugin. But i have little problem:
    When I try use /hate SomePlayer SomeBlock
    And i got this: [​IMG]
    /hat works perfect.
    Have CraftBukkit 556 and op. Whats wrong?
     
  29. Offline

    Zand

    Are you using permissions? If so then blockhead ignores op status and players need to have 'blockhead.hat' for "/hat", 'blockhead.hat.items' for "/hat [block id]", 'blockhead.hat.give.players.items' for "/hat [player] [block id]" and, 'blockhead.hat.give.groups.items'
     
  30. Offline

    rad1game

    No, not using any permission. Any ideas?
    And 1 question.. Can u make wear body, leg and arms? Like on u screen :)

    upd
    I fix that problem. I install permissions D:
    so, 1 quiz left: support of wearing block at body and other? :rolleyes:
     
  31. Offline

    bobddk

    Code:
      Admins:
        default: false
        permissions:
        - blockhead.hat
        - blockhead.hat.give.players.items
        - blockhead.hat.items
        - blockhead.hat.give.groups.items
    it says i dont have acces to the cmd i even added the permission
     

Share This Page