RedHat

MineCraft person wearing purple wool hat with redhat

RedHat


RedHat is my first released plugin for bukkitdev. It does what you would probably suspect, allows players to wear blocks/items on their heads.

It is fully configurable, with permissions and limiting what items users can have as hats.

Commands

/hat hand : places the item in your hand on your head.

/hat item <itemid> : makes the item specified by the id given your hat. (practically allows for the spawning of items, be careful who you give this to)

/hat reload : reloads RedHat's config (used to apply changes made to the config. It is the only command usable from the console) .

/hat help : Displays help for any RedHat commands (that the player has permission for)

/hat listblocked : Gives a player a list of all blocked items. If the player has the RedHat.ignoreRestriction permission, it gives him a note that those restrictions don't apply to him.

/hat remove : A player who issues this command has his hat removed. This is useful for players in creative mode.

/hat other : Allows you to remove a player's hat or give a player a hat.

Whenever a user uses a hat command, if he already has a hat, it will be placed into blank space in his inventory, and if there is none, dropped on the ground.

All commands are by permission and default to op.

Permissions

RedHat.* : Any player with this permission has access to the "/hat hand", "/hat item <itemID>" , and "/hat reload" commands, and is allowed to bypass restrictions set in the config.

RedHat.use : Any player with this permission has access to the "/hat hand" and "/hat item <itemID>" commands, but cannot bypass restrictions.

RedHat.ignoreRestrictions : Allows the player to bypass the restrictions in the config.

RedHat.hand : Allows the player to use the "/hat hand" command.

RedHat.item : Allows the player to use the "/hat item" command.

RedHat.admin : Allows the player to use the "/hat reload" command.

RedHat.list : Allows the player to use the "/hat listBlocked" command.

RedHat.other.give: Allows the player to use the "/hat other <username> <itemID>" command to give a player a hat.

RedHat.other.remove: Allows the player to use the "/hat other <username> remove" command to remove a player's hat.

RedHat.remove: Allows the player to remove his own hat with the "/hat remove" command.

Configuration

As of right now, there is only one option in the configuration, called "blocked-items." It is a list, where you put the itemIDs of the items users cannot have as hats. Players with the "RedHat.ignoreRestrictions" permission can ignore this list. For example, if you wanted to disallow users to have diamonds, bedrock, and saplings as hats, the section would look like:

blocked-items:
  - 264
  - 7
  - 6

Please note that if you make any changes while the server is running, you will have to use /hat reload to put them in effect.

Planned Features:

  • Sign support for hats
  • Allow administrators to remove players's hats/set hats for a player (Done as of version 1.2)
  • In-Game config manipulation.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of datamann10 datamann10 Mar 25, 2013 at 22:37 UTC - 0 likes

    Hey, can u add a function so that Command blocks can execute it

  • Avatar of EnvisionRed EnvisionRed Sep 09, 2012 at 20:26 UTC - 0 likes

    I'm just going to say this outright, the code for this project is pretty awful as I had just started java when I released this. It's completely inefficient and I suppose I could rewrite but not in the foreseeable future. Anyway, I hate picking through the code for this project so adding in vault (economy) capability won't happen for a while.

    My plugins:

    • SmartExp BFAK:EnvisionRed,90687542,0b1d831978f41792428a042f005e7fdacf6ccc36e2625b8dfeb6a2a4f5fb20e3
  • Avatar of aselox aselox Aug 23, 2012 at 01:32 UTC - 0 likes

    @PigPlushy: Go

    +1

  • Avatar of PigPlushy PigPlushy Jul 24, 2012 at 17:02 UTC - 0 likes

    Is there any way you could integrate this into an economy were the users have to buy the hats?

    Thanks in advance - Bryan

  • Avatar of UltiByte UltiByte Jun 23, 2012 at 15:46 UTC - 0 likes

    @EnvisionRed: Go

    No problem :P thanks for the plugin :)

  • Avatar of EnvisionRed EnvisionRed Jun 23, 2012 at 07:12 UTC - 0 likes

    @UltiByte: Go Thanks for the youtube review. That's an interesting glitch with the cobweb, though. I'll look into that, and maybe I can find a fix for it...

  • Avatar of UltiByte UltiByte Jun 22, 2012 at 23:06 UTC - 0 likes

    @EnvisionRed: Go

    Also, We found your plugin so awesome, we decided to make a video about it! http://www.youtube.com/watch?v=uvAYK-Mc0O8

    Feel free to use it how you like :)

  • Avatar of UltiByte UltiByte Jun 22, 2012 at 21:18 UTC - 0 likes

    @EnvisionRed: Go

    Aaaah I see, that makes sense now. :P

  • Avatar of EnvisionRed EnvisionRed Jun 22, 2012 at 17:12 UTC - 0 likes

    @UltiByte: Go

    Hm....I did a lot of research on it when it was suggested, but I think you would have to modify the packets sent to the client somehow. I'll keep looking into it but I probably won't be able to successfully do it for the next few versions.

    EDIT:

    Note that the last update of it was Nov. '11. While in previous versions of Minecraft, clients did not render their own lighting, making plugins such as that possible, in the current version it is not. Sorry :(

    Last edited Jun 22, 2012 by EnvisionRed
  • Avatar of UltiByte UltiByte Jun 22, 2012 at 14:44 UTC - 0 likes

    @EnvisionRed: Go

    I can tell you that it is indeed possible to make a glowstone hat glow. I can't explain how because I myself am not a coder, but I think it has something to do with making the block a player's head occupies glow, rather than the actual hat. This plugin developer has done it. I'll link you: http://dev.bukkit.org/server-mods/glowhat/ :)

    Last edited Jun 22, 2012 by UltiByte

Facts

Date created
Jun 18, 2012
Categories
Last update
Jun 21, 2012
Development stage
Release
Language
  • enUS
License
All Rights Reserved
Curse link
RedHat
Downloads
3,371
Recent files

Authors