BetterHats | Cosmetic Survival-Compatible Hats
1.8.3Set hats for players in ANY gamemode with "Inventory Protection" to not let players get free items!
BetterHats is now LIVE on my server! "mc.RonanCraft.net"! Just type "/cosmetica"!
Need help/support? Click here!
Join us on Discord!
https://discordapp.com
If you would like to seek live support, feel free to join our discord server by entering the following code in your Discord app: 8Kt4wKm
Or click here: http://discord.gg/8Kt4wKm
Metrics
This plugin collects metrics on the following statistics such as Server count, Cores, Players Online, and more... You may opt out at any time under the file named "bStats" please do not disable this as is motivates me to publish more updates!
Current Stats
Pictures :)


BetterHats is a plugin meant to get ANY block as a hat into survival based gameplay without having the player steal the block, or having to find the block before equipping it. This plugin stops players in SURVIVAL and ADVENTURE mode not be allowed to remove the hat they equip from within the GUI menu provided within the plugin.

- Set any block that you have control of in the menu.yml file, or with a command!
- Enable and Disable buttons in the gui menu, with pages if items go above 45!
- Items are blocked from being moved/used if a player is in adventure or survival mode.
- When the player dies with a hat equipped, their hat is not dropped!
- On the go editing! Little to no configuration needed!

- #1 - Download BetterHats.jar
- #2 - Upload BetterHats.jar into your plugins folder
- #3 - Reload/Restart your server, configure and execute "/hats reload" and set!
Need a server quick? Try JeekieHost
Aliases: hats, bhats
- /betterhats - Shows all hat choices listed in the menu.yml file
- /betterhats set [player] <item> [itemName] - Sets a hat to your self if "[player]" parameter is not in the command. Or a hat to another player if the player specified is online!
- /betterhats remove [player] - Removes your hat if one's equipped. And optionally remove another players hat with the [player] parameter, with a permission of course
- /betterhats add [itemName] - Adds the current item you are holding to the inventory! With an optional itemName for custom named items!
- /betterhats reload - Reloads the plugin
- /betterhats help - Shows all commands.

Permissions
betterhats.*:
children:
betterhats.reload: true
betterhats.reload: true
betterhats.set.*: true
betterhats.remove.*: true
betterhats.add: true
betterhats.delete: true
betterhats.set.*:
children:
betterhats.set: true
betterhats.set.other: true
betterhats.remove.*:
children:
betterhats.remove: true
betterhats.remove.other: true
betterhats.use:
description: use menu
default: true
betterhats.set:
description: set your hat
default: op
betterhats.set.other:
description: set another players hat
default: op
betterhats.remove:
description: remove your hat
default: op
betterhats.remove.other:
description: remove another players hat
default: op
betterhats.add:
description: add a hat to the inventory
default: op
betterhats.delete:
description: remove a hat from the inventory
default: op
betterhats.reload:
description: reload plugin
default: op
betterhats.updater:
description: receive a message if the plugin has a new update available
default: op
English: Thanks to @AfterBurn2point0
Español: Thanks to @Maximiliano

(Must have PlaceholderAPI installed)
- %betterhats_hat% - Gives back the current hat the player has equipped.

# BetterHats plugin by SuperRonanCraft! (Join my Public Server mc.RonanCraft.net) #
# Please give me credit, I'm a first time coder, and would love to see more discussions on my Spigot page! #
#DO NOT TOUCH!
Version: 1.5.1
Settings:
PermissionToOpenGUI: true
EnableGUI: true
Messages:
Prefix: '&7[&6&lBetterHats&7] '
Reload: '&aConfig reloaded!'
SetHat: '&aCongratulations! &7Hat set to &e%hat%&7!'
OtherSetHat: '&aCongratulations! &7%player%''s hat set to &e%hat%&7!'
Error: '&cWhoops! &7Looks like you have a helmet equipped! Please remove it!'
OtherError: '&cWhoops! &7Looks like %player% has a helmet equipped!'
NoHat: '&cWhoops! &7You don''t have a hat equipped, so you can''t remove it!'
OtherNoHat: '&cWhoops! &7%player% does not have a hat equipped, so it can''t remove it!'
RemoveHat: '&aHat &7%hat%&a was removed!'
OtherRemoveHat: '&aHat &7%hat%&a for &7%player% &awas removed!'
NoPermission: '&cSorry! &7You don''t have permission to do this command!'
AddItem: '&aItem &7%item% &ahas been added successfully!'
AddItemName: '&cWhoops! &7Looks like this item name is already taken, try another name!'
Delete: '&aThe item %item% was successfully deleted from the menu!'

Settings:
Menu:
Title: '&lBetterHats'
Permission:
Default: 'betterhats.all'
Allowed:
Lore:
- ''
- '&7Allowed: &aTrue'
NotAllowed:
Lore:
- ''
- '&7Allowed: &cFalse'
NextPage:
Slot: 9
Name: '&6&lNext Page'
Item: 'book'
Lore:
- ''
- '&7Click to to page &6%page%'
LastPage:
Slot: 1
Name: '&6&lLast Page'
Item: 'book'
Lore:
- ''
- '&7Click to to page &6%page%'
CurrentPage:
Enabled: true
Slot: 4
Name: '&b&lPage #&7&l%page%'
Item: 'book_and_quill'
Lore:
- ''
- '&7You are currently in &6%page%'
RemoveHat:
Enabled: true
Slot: 5
Name: '&d&lRemove Hat'
Item: 'slime_ball'
Lore:
- '&7Switch between how your trail'
- '&7will be shown! While in'
- '&7flight, or until it despawns!'
- ''
- '&aCurrently&7: %hat%'
Flight: 'Flight'
Despawn: 'Despawn'
Delete:
##Title will include the item you are deleting ex: '&a&lDelete: Emerald' "Emerald" will be forced into the title!
Title: 'Delete: '
Confirm:
Name: '&a&lConfirm &7%item%'
Item: 'wool:5'
Lore:
- ''
- '&7Click to confirm deleting %item%'
Cancel:
Name: '&c&lCancel &7%item%'
Item: 'wool:14'
Lore:
- ''
- '&7Click to cancel deleting %item%'
Permission:
##This will only show up if the player has the "betterhats.delete" permission
Lore:
- ''
- '&7Shift-Right Click to open Delete menu!'
Menu:
StainedGlass:
Name: '&f&lWhite'
Item: 'stained_glass'
##Lores are optional! But pretty nice if you have patience to create one for all the items!
Lore:
- ''
- '&7Click to equip %hat% &7hat!'
Permission: 'betterhats.white'
StainedGlass1:
Name: '&6&lOrange'
Item: 'stained_glass:1'
Permission: 'betterhats.orange'
StainedGlass2:
Name: '&d&lLight Purple'
Item: 'stained_glass:2'
Permission: 'betterhats.glass'
StainedGlass3:
Name: '&b&lLight Blue'
Item: 'stained_glass:3'
Permission: 'betterhats.glass'
StainedGlass4:
Name: '&e&lYellow'
Item: 'stained_glass:4'
StainedGlass5:
Name: '&a&lGreen'
Item: 'stained_glass:5'
StainedGlass6:
Name: '&c&lPink'
Item: 'stained_glass:6'
StainedGlass7:
Name: '&8&lGray'
Item: 'stained_glass:7'
StainedGlass8:
Name: '&7&lLight Gray'
Item: 'stained_glass:8'
StainedGlass9:
Name: '&9&lDark Aqua'
Item: 'stained_glass:9'
StainedGlass10:
Name: '&5&lDark Purple'
Item: 'stained_glass:10'
StainedGlass11:
Name: '&1&lDark Blue'
Item: 'stained_glass:11'
StainedGlass12:
Name: '&6&lBrown'
Item: 'stained_glass:12'
StainedGlass13:
Name: '&2&lDark Green'
Item: 'stained_glass:13'
StainedGlass14:
Name: '&4&lRed'
Item: 'stained_glass:14'
StainedGlass15:
Name: '&8&lBlack'
Item: 'stained_glass:15'
Wool:
Name: '&f&lWhite Wool'
Item: 'wool'
Wool1:
Name: '&6&lOrange Wool'
Item: 'wool:1'
Wool2:
Name: '&d&lLight Purple Wool'
Item: 'wool:2'
Wool3:
Name: '&b&lLight Blue Wool'
Item: 'wool:3'
Wool4:
Name: '&e&lYellow Wool'
Item: 'wool:4'
Wool5:
Name: '&a&lGreen Wool'
Item: 'wool:5'
Wool6:
Name: '&c&lPink Wool'
Item: 'wool:6'
Wool7:
Name: '&8&lGray Wool'
Item: 'wool:7'
Wool8:
Name: '&7&lLight Gray Wool'
Item: 'wool:8'
Wool9:
Name: '&9&lDark Aqua Wool'
Item: 'wool:9'
Wool10:
Name: '&5&lDark Purple Wool'
Item: 'wool:10'
Wool11:
Name: '&1&lDark Blue Wool'
Item: 'wool:11'
Wool12:
Name: '&6&lBrown Wool'
Item: 'wool:12'
Wool13:
Name: '&2&lDark Green Wool'
Item: 'wool:13'
Wool14:
Name: '&4&lRed Wool'
Item: 'wool:14'
Wool15:
Name: '&8&lBlack Wool'
Item: 'wool:15'
Diamond:
Name: '&b&lDiamond'
Item: 'diamond_block'
Gold:
Name: '&6&lGold'
Item: 'gold_block'
Lapis:
Name: '&1&lLapis'
Item: 'lapis_block'
Redstone:
Name: '&c&lRedstone'
Item: 'redstone_block'
Emerald:
Name: '&a&lEmerald'
Item: 'emerald_block'
Quartz:
Name: '&f&lQuartz'
Item: 'quartz_block'
Plugin is not compatible with other hats plugins such as essentials "/hats" command, as all usually non-wearable items are protected! Unless you want to always use "/hats remove" when players use other hat plugin commands!
Mind donating to a hardworking Developer!
- You may distribute this plugin as long as the download link stays on this page!
- You may not copy/rename/decompile this code and claim it as yours!
Please leave a 5 Star Review if you like it! Please post bugs/errors in the Discussion page! Please leave me suggestions to add on to the plugin to make it even better!

Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
26.2MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.9MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
4.7MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta
