Unofficial site, not affiliated with modrinth.com.What is this?
Плагины/MiniGameCore

Static Badge

MiniGameCore

MiniGameCore is a central plugin for managing minigame lobbies in Minecraft Paper Servers. It handles hosting, joining, starting, and stopping games – with animated scoreboards, statistics, and multiverse support.


🔧 Installation

  1. Download the latest .jar from Modrinth or Releases.
  2. Place the file in the plugins/ folder of your Minecraft server.
  3. For permission-management, you can optionally use a plugin like LuckPerms.
  4. Restart the server once.

📜 Commands & Permissions

Aliases: /p for /party and /tc for /teamchat

CommandDescriptionPermission
/mg host <game>Creates a new lobbymgcore.host
/mg join <lobby-id>Join the lobbymgcore.join
/mg readySet your Status as Readymgcore.ready
/mg unreadySet your Status as not Readymgcore.ready
/mg confirmConfirm an actionmgcore.confirm
/mg leaveLeave the lobby or gamemgcore.leave
/mg startStart the game manually (if allowed)mgcore.start
/mg spectate <lobby-id|player>Join a game as a spectatormgcore.spectate
/mg reloadReload the pluginmgcore.admin
/mg stop <lobby-id>Stop a specific gamemgcore.admin
/mg stopallStop all active gamesmgcore.admin
/mg ban <player>Ban the player from using most MiniGameCore commandsmgcore.admin
/mg versionDisplays the version of MiniGameCore you are usingmgcore.use (default)
/party create <name>Creates a new partymgcore.party.create
/party join <player>Join the player's Partymgcore.party.join
/party leaveLeave your partymgcore.party.join
/party invite <player>Invite a player to your partymgcore.party.invite
/party denyDeny a player's invitation to their partymgcore.party.invite
/party listList the Party's Membersmgcore.party.list
/teamchat <message>Sends the message to your team onlymgcore.teamchat

⚙️ Plugin-Configurations

Plugin Configurations are located in the folder: ./plugins/MiniGameCore. The main configuration file is config.yml.

config.yml

Example config:

available-games:
- Game1
- Game2
- Game3
banned-players:
- 2e0749e5-4ec0-4201-b58d-c4277014749c
- 337482fe-8a15-47f6-bea5-a84918a86393
keep-worlds: false
disable-scoreboard: false

Note: if keep-worlds: true, the plugin is going to move them to ./plugins/MiniGameCore/ArchivedWorlds instead of deleting them.

Loading Game-Worlds & Configuring them

The Folder for Gameworlds and configs is ./MiniGameCore. Every Game World should be named like this: <Game name>_world. If you want multiple maps per game, name the other worlds <Game name>_world<index>. The world configs are named config.yml and should be located in the Game's world folder.

All available options:

FieldDescriptionRequired / Default
nameDisplay name of the game, e.g. in the scoreboard or at /mg host✅ Yes
maxPlayersMaximum number of players for this game instance✅ Yes
teamsMaximum number of teams (0 for no teams, 2-8 teams possible)❌ No (default: 0)
minPlayersMinimum number of players for this game❌ No (default: 2)
spawnPointsDefault spawn points for players without a team✅ Depends
teamSpawnPointsSpawn points per team (e.g. 0: [...], 1: [...])✅ Depends
inventoryStarting items at game start (e.g. ["WOODEN_SHOVEL"])❌ No
allowed_break_blocksWhich blocks can be broken (e.g. ["SNOW_BLOCK"])❌ No
allowed_place_blocksWhich blocks can be placed (e.g. ["OAK_PLANKS"])❌ No
respawnModeControl of respawn behavior: "true" or "false"❌ No (default: false)
respawnDelaySeconds delay until respawn (if enabled)❌ No (default: 0)
doDurabilityControl ItemDamage: true (vanilla) or false❌ No (default: true)
allowPVPAllow PVP: true (vanilla) or false❌ No (default: true)
blocked_damage_causesStop these damage causes from happening❌ No
timeLimitStops a game after X seconds have passed❌ No (default: 600)
allowFriendlyFireAllow members of the same team to attack each other❌ No (default: false)
allowCraftingAllows Players to craft items during the game❌ No (default: false)
silenceDeathMessagesWhether or not to silence death messages❌ No (default: false)
hostPermOnly players with this permission may host this game❌ No (default: mgcore.host)
joinPermOnly players with this permission may join this game❌ No (default: mgcore.join)
doHungerWhether players' hunger bars should deplete❌ No (default: false)
allowOpeningContainersAllows players to open containers before the game starts❌ No (default: false)

Example config for an 8 player Spleef-Game:

game:
  name: Spleef
  maxPlayers: 8
  teams: 0
  spawnPoints:
    spawn1:
      x: -11
      y: 64
      z: 0
    spawn2:
      x: -7
      y: 64
      z: -7
    spawn3:
      x: 0
      y: 64
      z: -11
    spawn4:
      x: 7
      y: 64
      z: -7
    spawn5:
      x: 11
      y: 64
      z: 0
    spawn6:
      x: 7
      y: 64
      z: 7
    spawn7:
      x: 0
      y: 64
      z: 11
    spawn8:
      x: -7
      y: 64
      z: 7
  inventory:
    - "iron_shovel"
  allowed_break_blocks:
    - "snow_block"
  respawnMode: false
  doDurability: false
  allowPVP: false

‼️ API

You can use the MiniGameCoreAPI by importing the Project using Gradle! Paste this in your build.gradle:

repositories {
    maven { url "https://jitpack.io"  }
}

dependencies {
    implementation 'com.github.Wueffi:MiniGameCore:master-SNAPSHOT'
}

In your project, import classes/events/methods using import wueffi.MiniGameCore.x

Available Events are:
GameStartEvent with event.getGameName() and event.getLobby()
GameOverEvent with event.getLobby()

Helpful MGC Classes are:
Lobby
Team

Available API methods are:
getLobbyManager() -> return the LobbyManager instance
winPlayer(Lobby lobby, Player player) -> let a singular Player win a game
winTeam(Lobby lobby, Team team) -> let a Team win a game
playerDeath(UUID playerid) -> notify MiniGameCore of a Players Death
playerAlive(UUID playerid) -> notify MiniGameCore of a Players Respawn
getRespawnLocation(UUID playerid) -> returns the Respawn location of a player

Совместимость

Minecraft: Java Edition

Сведения

Опубликован:1 год назад
Обновлён:3 недели назад
ID проекта:
Главная