FunnyHeads v1.2.3 FunnyHeads is my first try to make a plugin, so have mercy with me DownloadBukkitDevI stopped coding this plugin because I'm busy with school, feel free to edit the code: Source (eclipse project folder) Features: Change your helmet into any block! Change others helmet into any block! Animate your helmet! Save your animations! Decide which blocks/items can be used for animation! Very easy to use! AWESOME! How to use it:It simply changes your (or your friends) head (in detail: the helmet) into nearly every block available (I haven't tried them all, lol). All you have to do is to hold a block of your choice in your hands and type /fh in the chat. This will teleport the block from your hands on your head, or if you already have a helmet, it will first try to put your current helmet into your inventory. If your inventory is full you will get a message and nothing happens.It's the same thing when you change the helmet of other players, for that type /fh <playername>. If you want to animate your helmet, type /fhanimate and follow the instructions! !! Please tell me if you find bugs !! All animations are private for each player and will be saved so that they exist beyond a server restart. Previews: This preview was made by Ultibyte, check out his youtube channel! And here is a preview from damnnicholas! On his youtube channel you will find many other plugin/mod previews and minecraft let's plays! Screenshot: Commands: /fh - change your own helmet to whatever you hold in your hands! /fh <player> - change the helmet of the chosen player to whatever you hold in your hands! /fhanimate - animate your helmet! /fhhelp - help! /fhquit - cancel animating your helmet! /fhundo - undo the recent animation step! /fhadd - add an item to your animation! /fhfreq - set the freqency of your animation! /fhsave <animation> - save your animation under a name! /fhlist - list all your animations! /fhremove <animation> - remove an animation! /fhstart <animation> - start an animation! /fhstop - stop the running animation! Permissions: funnyheads.self - allows to change your own helmet funnyheads.remote - allows to change others helmet funnyheads.animate - allows to animate the own helmet Per default, op's have all rights and others only the funnyheads.self - permission. Changelog TODO: Helmet animation - helmet changes in a given frequency Add sub-types support (colored wool, different wood, ...) Disable helmets with no visual effect Add black/white list to block/allow items Add Spout-support If you have any suggestions, please write a comment!I hope you enjoy it
This reminds me quite a bit of BlockHat, but the code seems to be yours at first glance, so good job!
isnt there like 30 plugins that do the same thing? In fact Essentials recently made it possible to do this with /hat And as you probably know just about every server uses Essentials.
actually i made this plugin just for fun and to improve my programming skills. all plugins i could find that "do the same thing" (i found 3 plugins) can't animate your helmet like funnyhead does. if you know a plugin that can do this please show me^^ and (excuse my language) funnyheads is easy as f to use for everyone you must have the blocks you want to animate or put on your head, so my plugin is also interesting for servers which want to prevent that users can "cheat" blocks. at least when i have fixed all bugs in the animation feature^^
what does animate mean? are you turning blocks into other blocks or is the block spinning? I would like to see this in action!
No, you have to wait until bukkit brings out the 1.3.1 version or a devbuild, if you want to play on a server downgrade to 1.2.5
It practically IS BlockHat... BUT, With the *AWESOME* addition of animations Why is it that some of the best plugins, no-one has even heard of
It's obvious that he didn't copy it! He has made the same plugin as any hat-plugin but added animations. He's code is obviously his as Omnitv said. Why do people think that developers copy others work? It is actually allowed to do so anyways, if the developer has made his code open source. If you still mean he has copied google "open source" to find out... for you orschi! Happy developing
I'm sorry but this wouldn't make much sense, if you don't want players to have this permission, simply set this permission in the "user"-group to false
I get this error in console, What do I do: Code: 2012-08-14 02:25:40 [SEVERE] Could not pass event PlayerQuitEvent to FunnyHeads org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.ServerConfigurationManagerAbstract.disconnect(ServerConfigurationManagerAbstract.java:213) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:711) at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:100) at net.minecraft.server.NetworkManager.b(NetworkManager.java:286) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.NullPointerException at FunnyHeads.FunnyHeads.onPlayerQuit(FunnyHeads.java:304) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330) ... 15 more
did you update from an older version of funnyheads or is this the first time you use this plugin? when you close the server without typing "stop" it could cause problems and it would be helpful if you post what funnyheads wrote when starting the server!
Everything is okay now, I just restarted the server while installing the plugin. I did update from the old one btw. Not sure if everyone knows this but i think this is an exploit to the plugin, For example: You add a diamond block and a gold block to your animation and then save it, You let yourself be killed by something or someone after you started the animation, The player that had the diamond block in his head will drop it and the other player will be able to grab it, When you return back to the spot you can type /fhstart <Name> and continue doing it for more diamond blocks. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
thank you for telling me this, i didn't think about that because i never play pvp. i'll make an update soon!