⚙️
T-MiniGameAPI
WebsiteDiscord
2.0.0-alpha1
2.0.0-alpha1
  • 🏠Home
  • 💻Maven and Gradle
  • 📦Minigame setup
  • 🖱️Plugins are using this libarary
  • Basic features
    • 🗺️Configuration
      • 🎯Configurators
      • 🔴Override Configuartors
    • 🖱️Commands - Deprecated
      • 🧔Parent commands
      • 🧒Sub commands
      • 📑Tab completer
      • ®️Command registration
    • 🧑Models
      • 📦File model
        • 🟢Single file
        • 🟠Many files
      • 💡DB model - Deprecated
      • 🧑‍🦱Users
    • 📔Loaders
      • 📗Loader
        • 📂File loader
        • 💾Database loader - Deprecated
    • 💬Library commands - Deprecated
  • Minigame features
    • 🅰️Arena system
      • 🟢Arena
      • 🔵ArenaManager
    • 🎮Game system
      • 🔴Game Manager
      • 🔵Game State
      • 🟡Users in game
      • 🟢Teams
    • ⏰Timers
      • 😀SimpleTimer
      • ✨XpTimer
    • 🪙Coins system
      • 🟢UserCoins
      • 🔵UserCoinsManager
    • ✨Statistics system
      • 🟢Default statistics system
      • 🔵Your own statistics system
    • 💥Cosmetics system
      • 📀Cosmetic
        • 💕ParticleCosmetic
      • ✳️Cosmetics Manager
      • 🧒Users' cosmetics
        • 💿UserCosmeticsManager
        • ✅UserCosmetics
  • Addons - Deprecated
    • 🎁What is addon?
    • 🖍️How to create addon?
    • 📃Addons list
  • Modules
    • 🔌What is module ?
    • 🗒️Modules list
    • 💾How to create module?
Powered by GitBook
On this page
  1. Minigame features
  2. Cosmetics system

Cosmetic

Cosmetic must be registered in the main class.

The cosmetic has two methods: getName and show.

It is recommended name: (CATEGORY_NAME_COSMETIC_NAME) e.g. HIT_HEART

How to create your cosmetics?

public class MyCosmetic implements Cosmetic {

 @Override
 public String getName() {
    return "MY_COSEMTIC_NAME"
 }
 
 @Override
 public void show(Player player) {
    //your logic 
 }

}

PreviousCosmetics systemNextParticleCosmetic
💥
📀