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.


