9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2026-01-04 15:41:45 +00:00

Merge branch 'updates'

# Conflicts:
#	.gitignore
#	1.16/build/classes/java/main/io/github/fisher2911/nms/ArmorStandPackets_1_16_R3.class
#	1.16/build/classes/java/main/io/github/fisher2911/nms/DestroyPacket_1_16_R3.class
#	1.16/build/libs/1.16.jar
#	1.16/build/tmp/compileJava/previous-compilation-data.bin
#	1.17/build/libs/1.17.jar
#	1.17/build/tmp/compileJava/previous-compilation-data.bin
#	1.18/build/libs/1.18.jar
#	1.18/build/tmp/compileJava/previous-compilation-data.bin
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/HMCCosmetics.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/api/CosmeticItem.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/api/HMCCosmeticsAPI.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/api/event/CosmeticChangeEvent.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/api/event/CosmeticItemEvent.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/command/CosmeticsCommand.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/concurrent/Threads.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/config/ActionSerializer.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/config/CosmeticSettings$1.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/config/CosmeticSettings.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/config/DyeGuiSerializer.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/config/GuiSerializer.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/config/ItemSerializer.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/config/Settings.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/config/SoundData.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/config/WardrobeSettings.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/cosmetic/CosmeticManager.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/database/Database.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/database/DatabaseConverter.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/database/DatabaseFactory.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/database/DatabaseType.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/database/dao/ArmorItemDAO.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/database/dao/UserDAO.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/gui/ArmorItem$1.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/gui/ArmorItem$Type.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/gui/ArmorItem.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/gui/ColorItem.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/gui/CosmeticGui.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/gui/CosmeticsMenu.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/gui/DyeSelectorGui.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/hook/Hook.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/hook/HookManager.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/hook/PAPIHook.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/hook/item/ItemHook.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/hook/item/ItemHooks.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/hook/item/ItemsAdderHook.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/hook/item/OraxenHook.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/inventory/PlayerArmor.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/listener/ClickListener.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/listener/CosmeticFixListener.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/listener/JoinListener.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/listener/MoveListener.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/listener/PlayerShiftListener.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/listener/RespawnListener.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/listener/TeleportListener.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/listener/WardrobeClickListener.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/message/Adventure.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/message/ErrorMessages.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/message/Message$Type.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/message/Message.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/message/MessageHandler$1.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/message/MessageHandler.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/message/Messages$1.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/message/Messages.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/message/Permission.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/message/Placeholder.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/message/TitleMessage.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/message/Translation.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/packet/PacketManager.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/task/DataTask.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/task/ImmediateTask.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/task/InfiniteTask.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/task/SupplierTask.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/task/SyncedTask.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/task/Task.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/task/TaskChain.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/task/TaskManager.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/user/Equipment.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/user/User.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/user/UserManager$1.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/user/UserManager.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/user/Wardrobe.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/util/Keys.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/util/StringUtils.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/util/Utils.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/util/builder/ColorBuilder.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/util/builder/ItemBuilder.class
#	common/build/classes/java/main/io/github/fisher2911/hmccosmetics/util/builder/SkullBuilder.class
#	common/build/generated/plugin-yml/Bukkit/plugin.yml
#	common/build/resources/main/config.yml
#	common/build/resources/main/menus/main.yml
#	common/build/resources/main/messages.yml
#	common/build/resources/main/plugin.yml
#	common/build/tmp/compileJava/previous-compilation-data.bin
#	nms/build/libs/nms.jar
#	nms/build/tmp/compileJava/previous-compilation-data.bin
This commit is contained in:
Fisher2911
2022-03-06 18:32:10 -05:00
173 changed files with 4000 additions and 1015 deletions

View File

@@ -0,0 +1,43 @@
name: HMCCosmetics
version: 1.10.0-BETA
main: io.github.fisher2911.hmccosmetics.HMCCosmetics
description: |
Intuitive, easy-to-use cosmetics plugin, designed for servers using resource packs.
load: STARTUP
authors:
- MasterOfTheFish
depend:
- ProtocolLib
permissions:
hmccosmetics.cmd.default:
description: Permission to execute the default command.
default: op
hmccosmetics.cmd.dye:
description: Permission to dye armor.
default: op
hmccosmetics.cmd.reload:
description: Permission to use the reload command.
default: op
hmccosmetics.cmd.set:
description: Permission to set other users' cosmetics.
default: op
hmccosmetics.cmd.token.give:
description: Permission to give other players tokens
default: op
hmccosmetics.cmd.wardrobe:
description: Permission to view the wardrobe
default: op
hmccosmetics.cmd.wardrobe.other:
description: Permission to open another player's wardrobe
default: op
hmccosmetics.cmd.wardrobe.portable:
description: Permission to use a portable wardrobe
default: op
api-version: 1.16
softdepend:
- Multiverse
- PlaceholderAPI
- Oraxen
- ItemsAdder
- Citizens
- ModelEngine

View File

@@ -0,0 +1,73 @@
cosmetic-settings:
require-empty-helmet: false
require-empty-off-hand: true
require-empty-chest-plate: true
require-empty-pants: true
require-empty-boots: true
# The pitch the player must look down for the backpack to be removed
# Set to -1 for no removal
look-down-backpack-remove: 70
# view distance in blocks that other players will see the backpack cosmetic
# setting this to lower than the server player view distance should fix the
# bug where players see random backpacks
view-distance: 32
# how the balloon should be positioned relative to the player
balloon-offset:
x: 0.5
y: 3
z: 0.5
wardrobe:
# if true, the wardrobe will be removed when the player is damaged
disable-on-damage: true
# removed if player leaves this radius, set to -1 for infinite radius
display-radius: -1
# if the player can use the wardrobe in other locations
portable: false
# if the wardrobe should always be displayed in the location below
always-display: false
# spawn static wardrobe if in this radius of wardrobe-location
static-radius: 10
# how much yaw should change per tick, set to 0 for none
rotation-speed: 3
# how long in ticks until the wardrobe should be spawned
spawn-delay: 40
# how long in ticks until the wardrobe should be despawned
despawn-delay: 40
# if cosmetics that the user have permissions for should be applied on close of wardrobe
apply-cosmetics-on-close: true
open-sound:
sound: # Play a sound
name: "minecraft:block.chain.break"
volume: 1.0
pitch: 1.0
category: "BLOCKS"
close-sound:
sound: # Play a sound
name: "minecraft:block.chain.break"
volume: 1.0
pitch: 1.0
category: "BLOCKS"
# location of static wardrobe, remove for none
wardrobe-location:
world: "World"
x: 0
y: 0
z: 0
yaw: 0
pitch: 0
viewer-location:
world: "World"
x: 5
y: 0
z: 5
yaw: 0
pitch: 0
leave-location:
world: "World"
x: 5
y: 5
z: 5
yaw: 0
pitch: 0

View File

@@ -0,0 +1,144 @@
title: "<white>" # GUI Title
rows: 5 # Rows in the GUI
items:
1: # GUI Slot number
material: LEATHER_HORSE_ARMOR # Also supports Oraxen items! Format: "oraxen:item_name"
name: "<rainbow>Colorful Hat</rainbow>"
lore: # Lore displayed when the player owns the item
- ""
- "<gray>Enabled: <#6D9DC5>%enabled%"
- "<gray>Allowed: <#6D9DC5>%allowed%"
locked-lore: # Lore displayed when the player does not have the correct permission.
- "<red>You do not own this item!"
amount: 1
model-data: 2 # CustomModelData Number
type: HAT
dyeable: true # Enables dyeable item feature
color: # Sets default color for item. Uses RGB format.
red: 5
green: 230
blue: 100
action: # See how the action system works on the wiki
any:
open-menu: dye-menu
permission: "cosmetics.colorful_hat" # Can be anything you want.
id: colorful_hat # Internal identifier. Can be anything you want.
2:
material: PAPER
name: "<blue>Backpack"
lore:
- ""
- "<gray>Enabled: <#6D9DC5>%enabled%"
- "<gray>Allowed: <#6D9DC5>%allowed%"
locked-lore:
- "<red>You do not own this item!"
amount: 1
model-data: 4
type: BACKPACK
permission: ""
id: backpack
3:
material: PAPER
name: "<blue>Lantern Cosmetic"
lore:
- ""
- "<gray>Enabled: <#6D9DC5>%enabled%"
- "<gray>Allowed: <#6D9DC5>%allowed%"
locked-lore:
- "<red>You do not own this item!"
amount: 1
model-data: 5
type: OFF_HAND
permission: ""
id: lantern_cosmetic
4:
material: PAPER
name: "<blue>Baseball Hat"
lore:
- ""
- "<gray>Enabled: <#6D9DC5>%enabled%"
- "<gray>Allowed: <#6D9DC5>%allowed%"
locked-lore:
- "<red>You do not own this item!"
amount: 1
model-data: 6
type: HAT
permission: ""
id: baseball_hat
5:
material: DIAMOND_CHESTPLATE
name: "<blue>Cosmetic Chestplate"
lore:
- ""
- "<gray>Enabled: <#6D9DC5>%enabled%"
- "<gray>Allowed: <#6D9DC5>%allowed%"
locked-lore:
- "<red>You do not own this item!"
amount: 1
type: CHEST_PLATE
permission: ""
id: chestplate
6:
material: DIAMOND_LEGGINGS
name: "<blue>Cosmetic Leggings"
lore:
- ""
- "<gray>Enabled: <#6D9DC5>%enabled%"
- "<gray>Allowed: <#6D9DC5>%allowed%"
locked-lore:
- "<red>You do not own this item!"
amount: 1
type: PANTS
permission: ""
id: pants
7:
material: DIAMOND_BOOTS
name: "<blue>Cosmetic Boots"
lore:
- ""
- "<gray>Enabled: <#6D9DC5>%enabled%"
- "<gray>Allowed: <#6D9DC5>%allowed%"
locked-lore:
- "<red>You do not own this item!"
amount: 1
type: BOOTS
permission: ""
id: boots
8:
material: BARRIER
name: "<blue>Balloon"
lore:
- ""
- "<gray>Enabled: <#6D9DC5>%enabled%"
- "<gray>Allowed: <#6D9DC5>%allowed%"
locked-lore:
- "<red>You do not own this item!"
amount: 1
type: BALLOON
permission: ""
id: barrier
balloon: "kindletronjr"
37:
material: PAPER
name: "<#40B7D6>Previous Page"
amount: 1
model-data: 1
action:
any:
open-menu: menu-2
40:
material: PAPER
name: "<rainbow>Customization Menu</rainbow>"
amount: 1
model-data: 3
action:
any:
open-menu: dye-menu
43:
material: PAPER
name: "<#40B7D6>Next Page"
amount: 1
model-data: 2
action:
any:
open-menu: menu-2

View File

@@ -0,0 +1,59 @@
prefix: "<white>"
no-permission: "%prefix% <red>No Permission!"
no-cosmetic-permission: "%prefix% <red>You do not have permission for this cosmetic!"
set-hat: "%prefix% <gradient:#6D9DC5:#45CDE9>Applied hat!"
removed-hat: "%prefix% <gradient:#6D9DC5:#45CDE9>Removed hat!"
set-balloon: "%prefix% <gradient:#6D9DC5:#45CDE9>Applied Balloon!"
removed-balloon: "%prefix% <gradient:#6D9DC5:#45CDE9>Removed Balloon!"
set-backpack: "%prefix% <gradient:#6D9DC5:#45CDE9>Applied backpack!"
removed-backpack: "%prefix% <gradient:#6D9DC5:#45CDE9>Removed backpack!"
set-off-hand: "%prefix% <gradient:#6D9DC5:#45CDE9>Applied offhand!"
removed-off-hand: "%prefix% <gradient:#6D9DC5:#45CDE9>Removed offhand!"
set-chest-plate: "%prefix% <gradient:#6D9DC5:#45CDE9>Applied chest plate!"
removed-chest-plate: "%prefix% <gradient:#6D9DC5:#45CDE9>Removed chest plate!"
set-off-pants: "%prefix% <gradient:#6D9DC5:#45CDE9>Applied pants!"
removed-pants: "%prefix% <gradient:#6D9DC5:#45CDE9>Removed pants!"
set-boots: "%prefix% <gradient:#6D9DC5:#45CDE9>Applied boots!"
removed-boots: "%prefix% <gradient:#6D9DC5:#45CDE9>Removed boots!"
set-dye-color: "%prefix% <gradient:#6D9DC5:#45CDE9>Set color of %item%!"
must-be-player: "<red>You must be a player to do this!"
reloaded: "%prefix% <gradient:#00ff87:#60efff>Config files reloaded!"
invalid-type: "%prefix% <red>Invalid cosmetic type, please use <u>hat</u>, <u>backpack</u> or <u>off_hand</u>!"
set-other-backpack: "%prefix% <gradient:#6D9DC5:#45CDE9>You have set the backpack of %player% to %type%"
set-other-hat: "%prefix% <gradient:#6D9DC5:#45CDE9>You have set the hat of %player% to %type%"
set-other-off-hand: "%prefix% <gradient:#6D9DC5:#45CDE9>You have set the off hand of %player% to %type%"
set-other-chest-plate: "%prefix% <gradient:#6D9DC5:#45CDE9>You have set the chest plate of %player% to %type%"
set-other-pants: "%prefix% <gradient:#6D9DC5:#45CDE9>You have set the pants of %player% to %type%"
set-other-boots: "%prefix% <gradient:#6D9DC5:#45CDE9>You have set the boots of %player% to %type%"
hid-cosmetics: "%prefix% <gradient:#6D9DC5:#45CDE9>You have hidden your cosmetics"
shown-cosmetics: "%prefix% <gradient:#6D9DC5:#45CDE9>You have shown your cosmetics"
opened-wardrobe:
type: title
message: "<black>"
fade-in: 1
duration: 1
fade-out: 1
closed-wardrobe: "%prefix% <gradient:#6D9DC5:#45CDE9>Closed wardrobe!"
wardrobe-already-open: "%prefix% <gradient:#6D9DC5:#45CDE9><red>The wardrobe is already open!"
not-near-wardrobe: "%prefix% <gradient:#6D9DC5:#45CDE9><red>You are not near the wardrobe!"
cannot-use-portable-wardrobe: "%prefix% <gradient:#6D9DC5:#45CDE9><red>You cannot use the portable wardrobe!"
opened-other-wardrobe: "%prefix% <gradient:#6D9DC5:#45CDE9><red>Opening %player%'s wardrobe."
gave-token: "%prefix% <gradient:#6D9DC5:#45CDE9><green>You gave %player% a %id% token"
received-token: "%prefix% <gradient:#6D9DC5:#45CDE9><green>You were given a %id% token"
traded-token: "%prefix% <gradient:#6D9DC5:#45CDE9><green>You have received the cosmetic: %id%"
already-unlocked: "%prefix% <gradient:#6D9DC5:#45CDE9><green>You have already unlocked the cosmetic: %id%"
help-command: "<#6D9DC5><st> </st> %prefix% <gradient:#40B7D6:#6D9DC5>HMCCosmetics - Help</gradient> %prefix% <#6D9DC5> <st> </st>
<#5AE4B5>- <#40B7D6>/cosmetics - <#6D9DC5>Opens cosmetics GUI.
<#5AE4B5>- <#40B7D6>/cosmetics add <gray><USERNAME> <ID> (#HEX)</gray> - <#6D9DC5>Adds cosmetic to player.
<#5AE4B5>- <#40B7D6>/cosmetics remove <gray><USERNAME> \<BACKPACK/HAT></gray> - <#6D9DC5>Removes cosmetic from a player.
<#5AE4B5>- <#40B7D6>/cosmetics dye <gray><BACKPACK/HAT></gray> - <#6D9DC5>Opens dye menu for the specified cosmetic type.
<#5AE4B5>- <#40B7D6>/cosmetics help - <#6D9DC5>Opens this menu.
<st> </st>"

View File

@@ -0,0 +1,43 @@
name: HMCCosmetics
version: 1.10.0-BETA
main: io.github.fisher2911.hmccosmetics.HMCCosmetics
description: |
Intuitive, easy-to-use cosmetics plugin, designed for servers using resource packs.
load: STARTUP
authors:
- MasterOfTheFish
depend:
- ProtocolLib
permissions:
hmccosmetics.cmd.default:
description: Permission to execute the default command.
default: op
hmccosmetics.cmd.dye:
description: Permission to dye armor.
default: op
hmccosmetics.cmd.reload:
description: Permission to use the reload command.
default: op
hmccosmetics.cmd.set:
description: Permission to set other users' cosmetics.
default: op
hmccosmetics.cmd.token.give:
description: Permission to give other players tokens
default: op
hmccosmetics.cmd.wardrobe:
description: Permission to view the wardrobe
default: op
hmccosmetics.cmd.wardrobe.other:
description: Permission to open another player's wardrobe
default: op
hmccosmetics.cmd.wardrobe.portable:
description: Permission to use a portable wardrobe
default: op
api-version: 1.16
softdepend:
- Multiverse
- PlaceholderAPI
- Oraxen
- ItemsAdder
- Citizens
- ModelEngine