⚙️
T-MiniGameAPI
WebsiteDiscord
2.0.0-rc1
2.0.0-rc1
  • 🏠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. Basic features
  2. Commands - Deprecated

Command registration

The CommandRgistration has two methods to register commands.

Every command must be register in main class.

Create instance of command registration with one param, this is your main class

CommandRegistration commandRegistration = new CommandRegistration(this)

Registering command without tabcompleter

commandRegistration.registerCommand(new MyCommand());

Registering command with tabcompleter

commandRegistration.registerCommandWithTabCompleter(new MyCommand());
PreviousTab completerNextModels
🖱️
®️