⚙️
T-MiniGameAPI
WebsiteDiscord
1.4.0
1.4.0
  • 🏠Home
  • 💻Maven and Gradle
  • 📦Minigame setup
  • 🖱️Plugins are using this libarary
  • Basic features
    • 🗺️Configuration
      • 🎯Configurators
      • 🔴Override Configuartors
    • 🖱️Commands
      • 🧔Parent commands
      • 🧒Sub commands
      • 📑Tab completer
      • ®️Command registration
    • 🧑Models
      • 📦File model
        • 🟢Single file
        • 🟠Many files
      • 💡DB model
      • 🧑‍🦱Users
    • 📔Loaders
      • 📗Loader
        • 📂File loader
        • 💾Database loader
    • 💬Library commands
  • 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
    • 🎁What is addon?
    • 🖍️How to create addon?
    • 📃Addons list
Powered by GitBook
On this page
  1. Basic features

Configuration

What is configuration?

Configuration is a set of settings that are necessary to build a minigame.

Default values for these settings are set in configurators.

The library has three types of configuration:

  1. PluginConfiguration - This configuration contains settings about plugin configuration

  • useDatabase (true|false) - enables or disables integration with SQL database

  • tablesPrefix (string) - prefix of every table in SQL database

  • useDefaultStatsSystem (true|false) - enables or disables using default stats system

  • arenaSaveType - (SINGLE_FILE | MANY_FILES) - sets arena save type (SINGLE_FILE - this type means arenas will be loaded from single file, MANY_FILES - every arena has single file)

  1. GameConfiguration

  • blockBreaking (true|false) - enables or disables breaking blocks during the game

  • blocksPlacing (true|false) - enables or disables placing blocks during the game

  • droppingItems (true|false) - enables or disables dropping itmes during the game

  1. CommandConfiguration

  • doNotHavePermissionMessage (string)- sets a message which will be displayed when player don't have permission

  • onlyPlayersMessage (string) - sets a message which will be displayed when a command is not for player

PreviousPlugins are using this libararyNextConfigurators

Last updated 1 year ago

🗺️