Compatibility
Minecraft: Java Edition
Platforms
Links
Tags
Creators
Details
HatPlugin
Turn anything into your hat ā instantly.
Made By Pingz0
A lightweight, optimized Paper 1.21+ plugin that lets players wear any item as a helmet with a single command. Built for performance, simplicity, and customization.
⨠Features
-
šÆ /hat Command Instantly equip the item in your hand as your helmet
-
š Smart Item Swapping Automatically swaps your current helmet with the item in your hand
-
ā± Configurable Cooldown Prevent spam with a customizable cooldown system
-
š Custom Sounds Play different sounds for success and failure
-
š¬ Fully Customizable Messages Supports color codes (
&a,&c, etc.) -
ā” Actionbar Feedback Clean, modern UI feedback instead of chat spam
-
š Live Config Reload Reload config instantly with
/hat reload -
š” Permission System
hat.useā Use /hathat.reloadā Reload config
-
š Lightweight & Optimized No unnecessary listeners, minimal performance impact
š¦ Installation
- Download the latest release
- Place the
.jarfile into your/plugins/folder - Start your server
- Done ā
āļø Configuration
Located at:
/plugins/HatPlugin/config.yml
Example:
# Cooldown between using /hat (seconds)
cooldown: 1
# Message on success
message: "&aNow wearing your item as a hat!"
# Message on failure (no item in hand)
failmessage: "&cYou need to hold an item!"
# Sound on failure
failsound: "ENTITY.VILLAGER.NO"
# Sound on success
sound: "ITEM_ARMOR_EQUIP_GENERIC"
š Commands
| Command | Description | Permission |
|---|---|---|
/hat |
Equip item as helmet | hat.use |
/hat reload |
Reload config | hat.reload |
š Permissions
| Permission | Default | Description |
|---|---|---|
hat.use |
true | Use the /hat command |
hat.reload |
op | Reload the config |
š® How it works
- Hold any item in your hand
- Run
/hat - Your item becomes your helmet
- If you already have a helmet ā it swaps automatically
ā” Compatibility
- ā Paper 1.21+
- ā Spigot (not recommended)
- ā Bukkit (not supported)
š§ Technical Notes
- Uses Paper API for best performance
- Safe sound parsing (prevents crashes from invalid config values)
- Optimized cooldown handling per player
- Clean code structure for easy expansion
š„ Planned Features
- [ ] Blacklist certain items (e.g. shulker boxes)
- [ ] Per-world settings
- [ ] GUI-based hat selector
- [ ] Particle effects
š¬ Support
If you find bugs or want new features:
- Open an issue
- Or contact the developer
š License
This project is licensed under the MIT License.


