ModsJava
Hat
Java mod listed for Minecraft 1.13–1.20. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotHat
A simple hat plugin.
Simply hold a single block or item in your hand and type /hat
(As of v1.4.0, you can also put the hat directly into the helmet slot)
The hat can be removed in the same way as any other helmet.
If you need support, message me.
If you have a feature request, message me.
Keep in mind I'd like to keep this plugin as simple to use as possible.
Permissions
hat.*
Grants use of every item (block and non-block) as hats.
hat.blocks
Grants the use of all blocks as hats.
hat.items
Grants the use for all non-block items as hats.
hat.ITEM_NAME_HERE
Grants use of the a specific item as a hat. Use the list of materials located in the spigot javadoc to get the proper name of a given item.
Examples
Message Customization
To customize the messages the plugin sends in response to commands or manual hat placement, edit the messages.yml file in the Hat folder in the plugins folder in your server's root directory.
Standard Minecraft color codes are supported ( https://minecraft.wiki/w/Formatting_codes#Color_codes), the character '&' is used to indicate that the next character is a color code. Be sure to also enclose each message in single quotes ( ' ).
Messages can also be disabled completely using an option in the file.
Once you have edited or disabled the messages, reload or restart the server to apply the changes.
If you are experiencing errors related to messages.yml, or your messages aren't appearing, the easiest fix is to delete messages.yml and reload or restart the server. A new copy of the default file will be generated.
Requested Features
A simple hat plugin.
Simply hold a single block or item in your hand and type /hat
(As of v1.4.0, you can also put the hat directly into the helmet slot)
The hat can be removed in the same way as any other helmet.
If you need support, message me.
If you have a feature request, message me.
Keep in mind I'd like to keep this plugin as simple to use as possible.
Permissions
hat.*
Grants use of every item (block and non-block) as hats.
hat.blocks
Grants the use of all blocks as hats.
hat.items
Grants the use for all non-block items as hats.
hat.ITEM_NAME_HERE
Grants use of the a specific item as a hat. Use the list of materials located in the spigot javadoc to get the proper name of a given item.
Spoiler: Only for Version 1.3.1 and Below
-hat.ITEM_NAME_HERE
Denies the use of the command for a specific item.
Denies the use of the command for a specific item.
Examples
- hat.WHITE_CONCRETE would grant the use of a block of white concrete as a hat.
- hat.DIAMOND would grant the use of a diamond as a hat.
- hat.* and -hat.STONE together would grant the use of anything except a stone block as a hat.
Message Customization
To customize the messages the plugin sends in response to commands or manual hat placement, edit the messages.yml file in the Hat folder in the plugins folder in your server's root directory.
Standard Minecraft color codes are supported ( https://minecraft.wiki/w/Formatting_codes#Color_codes), the character '&' is used to indicate that the next character is a color code. Be sure to also enclose each message in single quotes ( ' ).
Messages can also be disabled completely using an option in the file.
Once you have edited or disabled the messages, reload or restart the server to apply the changes.
If you are experiencing errors related to messages.yml, or your messages aren't appearing, the easiest fix is to delete messages.yml and reload or restart the server. A new copy of the default file will be generated.
Requested Features
- Put on a hat by moving it to the helmet slot without using the command (same permissions will apply). COMPLETE
- Allow messages to be completely disabled. COMPLETE
- New command "/hat reload" will allow you to reload all yml files (currently just messages.yml) associated with the plugin without reloading the entire server.
- Post the code on GitHub or similar site. COMPLETE
- Dynamically register permissions so that they show up in tab-complete of plugins like LuckPerms COMPLETE
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.13, 1.14, 1.15
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Hat is a free Minecraft Java mod. Compatible with Minecraft 1.13, 1.14, 1.15, 1.16 and newer. Downloaded 130,510 times (via Spigot). Download it and open it directly in the game.