New Features:![]()
- Skin-Previewer through NPCs [Citizens + ProtocoLib usage]![]()
- Full functioning GUIs with proper YAML config setup [Cosmetics and more, as well as allowing you to link your own guis onto the main-gui interface]![]()
---------------------------------------- Minor updates within the code.![]()
Command updates:![]()
- /owned
- /preview preview npc
- /preview finished finish preview session![]()
This update has a large sum of new features and updates on existing codes to amplify your server's functionality and allow you to set up multiple more features onto your Roleplays!
New Features:![]()
- Cosmetics
- Muscles folder for transparent (low opacity) overlays to compile on-top of your skin-overlays
- Hats folder for skin-hats/head items
- Temporary clothing wearing
- Add multiple overlays at once set-up with temporary time to be on the player
- Add/un-add multiple overlays at once
- Overlay randomiser
- guis_owned.yml and guis.yml, aka owned overlays and outfits (NOTE: guis_owned.yml currently is not 100% complete, please do not insert it as a full functioning addition onto your server's ClothesPlus usage yet!)![]()
Command updates:![]()
- /cosmetics wear/unwear [username] [cosmetic_name] > for equipping cosmetics onto your player![]()
- /clothes wear [username] [overlayname] [ticks] > for temporary overlays![]()
- /clothes randomise [username] [overlayname],[overlayname],[overlayname],[overlayname] > To add a random overlay from the added multiple overlays!![]()
- /clothes wear/unwear [username] [overlayname],[overlayname],[overlayname],[overlayname] delay {delay_time} > To add multiple overlays slowly![]()
- /outfits > to save overlays on a GUI and load from it - /owned >for owned/equipped on overlays![]()
- /clothes wear {username} {overlayname},{overlayname},{overlayname} {ticks} > temporary multiple overlays![]()
- /clothes wear/unwear {username} {overlayname},{overlayname},{overlayname} > multiple overlay adding/removing at once![]()
v1.0.6 Updates
- Colour-Picker
- Set-up sounds for wearing clothes and removing them
- NPCs that show the skin changes
- /clothes view > to view the skin changes in front of you on an NPC, the view spawns an NPC and locks the player, not allowing them to move until they do the command again in order to toggle off the NPC-viewer.![]()
![]()
Added diff languages support inside the codes and default plugin folders.
Rich (BB code):# Wardrobe Clothes Plugin Configuration # The maximum number of accessory overlays a player can have. accessories_limit: 3 # Default language for the plugin. # Supported languages: en, tr default-language: 'en'
JavaScript:private void loadLanguage() { File langFile = new File(plugin.getDataFolder() + "/lang", "messages_" + defaultLanguage + ".yml"); if (!langFile.exists()) { plugin.saveResource("lang/messages_" + defaultLanguage + ".yml", false); } YamlConfiguration langConfig = YamlConfiguration.loadConfiguration(langFile); for (String key : langConfig.getKeys(true)) { if (!langConfig.isConfigurationSection(key)) { messages.put(key, langConfig.getString(key)); } } }
Now jacket overlays will automatically remove the 2nd layer of your shirt overlays so the shirt overlays won't interfere with your jackets.
Please get the default_skin folder inside the zip and paste it into your plugin folder with the template.png inside it.
Sneak-peek of the code for the editing of the template.png
JavaScript:BufferedImage overlay = ImageIO.read(overlayFile); for (int x = 0; x < overlay.getWidth(); x++) { for (int y = 0; y < overlay.getHeight(); y++) { if (template.getRGB(x, y) == 0x00000000) { overlay.setRGB(x, y, 0x00000000); } } }
JavaScript:[+]Changed the way the player's skin gets compiled. (I will be adding a config.yml way sooner or later on picking to allow mc-skins or blank skin to be used through true/false system) -------------------------------------------------------------- // Fetch the blank skin from default_skin folder try { File blankSkinFile = new File(plugin.getDataFolder(), "default_skin/alex.png"); return ImageIO.read(blankSkinFile); [...] ------------------------------------------------------------- [+]Added config.yml which now allows plugin-users to decide how m accessories a player can overlay/compile before they have to rem one to be able to put another -------------------------------------------------------------- # Wardrobe Clothes Plugin Configuration # The maximum number of accessory overlays a player can have. accessories_limit: 3 // Initialize a list to store accessory overlays to be added List<String> accessoryOverlaysToAdd = new ArrayList<>(); for (String overlayName : overlayNames) { String newOverlaySubfolder = overlayName.split("/")[0]; if (!"accessories".equals(newOverlaySubfolder)) { [...]
