austinmoen2100

Key Features

Lobby: /matchmaking setlobby sets spawn. No damage in lobby.

Timer: 60s countdown (configurable) shown as big title in top-middle. Configurable color & size.

Voting: Starts at 45s left. Players vote with /vote 1, /vote 2, /vote 3, /vote 4 (4 = Skip). Show up to 3 maps + Skip.

Maps: Same world. /matchmaking map create <name> /matchmaking map setspawn <name> red/blue Match: 60s or 3 kills (both configurable). Friendly fire off. Even teams.

Death → respawn at team spawn with 5s invincibility.

End: Announce winner with colored title + fireworks, teleport back to lobby after 8s.

Requirements

All settings in config.yml (timer, match time, kill limit, messages, etc.) Persistent map storage (YAML) Clean code with managers (Lobby, Match, Voting, MapManager) Handle edge cases (player quit, no maps, missing spawns) Use Adventure for titles/messages Add basic commands with tab completion + permissions

Provide instructions on how to install plugin onto minecraft server

Kodari AI
KodariApr 11 at 2:22 am 20,596 (v2)

I’ll create a competitive PvP matchmaking plugin with lobby, countdown, voting, and team-based matches.

MatchmakingPvP
A competitive PvP matchmaking system with lobby management, countdown timer, map voting, and team-based matches. Features configurable match duration and kill limits, automatic respawns with invincibility, firework victory celebrations, and Adventure API integration for rich titles and messages. Includes admin commands for lobby and map configuration with full persistence.

All files created successfully! Here’s a summary of the MatchmakingPvP plugin:

Installation Instructions

  1. Build the plugin:

    Shell
    ./gradlew build
    

    The compiled JAR will be in build/libs/

  2. Install on server:

    • Copy the JAR file to your server’s plugins/ folder

    • Start/restart the server

    • Plugin will generate config.yml and maps.yml in plugins/MatchmakingPvP/

  3. Initial setup:

    Plain Text
    /matchmaking setlobby
    /matchmaking map create Arena1
    /matchmaking map setspawn Arena1 red
    /matchmaking map setspawn Arena1 blue
    
  4. Testing:

    • Have 2+ players join the server

    • They’ll auto-teleport to lobby

    • Countdown starts at 60s

    • At 45s, voting appears

    • Players use /vote 1-4

    • Match starts, first to 3 kills or 60s wins

    • Fireworks + title display

    • Auto-teleport back to lobby after 8s

Features Implemented

✅ Lobby system with spawn point, no damage
✅ 60s lobby countdown with Adventure titles
✅ Map voting (45s mark, 3 maps + skip)
✅ Persistent map storage (YAML)
✅ Team balancing (red/blue)
✅ Kill tracking & win conditions
✅ Respawn with 5s invincibility
✅ Friendly fire prevention
✅ Victory titles + fireworks
✅ Full command system with tab completion
✅ Edge case handling (quits, missing maps, etc.)

austinmoen2100

Are there video turorials on how to build the plugin?

austinmoen2100

set lobby works, map creation and spawn points work, lobby timer and map voting works but when the timer hits zero the match doesnt start, you stay in lobby and the timer resets. Also can you add /matchmaking pause to pause matchmaking

console log: 11.04 19:46:52 [Server] INFO VOTING STARTED! 11.04 19:46:52 [Server] INFO Use /vote <1-4> to choose a map 11.04 19:46:52 [Server] INFO [0] 1. Ridgeline 11.04 19:46:52 [Server] INFO [0] 2. Skip 11.04 19:47:52 [Server] INFO VOTING STARTED!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
18 1,469
src/main/java/com/matchmakingpvp/MatchmakingPvP.java
package com.matchmakingpvp;

import com.matchmakingpvp.commands.MatchmakingCommand;
import com.matchmakingpvp.commands.VoteCommand;
import com.matchmakingpvp.listeners.PlayerDamageListener;
import com.matchmakingpvp.listeners.PlayerDeathListener;
import com.matchmakingpvp.listeners.PlayerJoinListener;
import com.matchmakingpvp.listeners.PlayerQuitListener;
import com.matchmakingpvp.managers.*;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class MatchmakingPvP extends JavaPlugin {
    private LobbyManager lobbyManager;
    private CountdownManager countdownManager;
    private VotingManager votingManager;
    private MapManager mapManager;
    private MatchManager matchManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        mapManager = new MapManager(this);
        lobbyManager = new LobbyManager(this);
        countdownManager = new CountdownManager(this);
        votingManager = new VotingManager(this);
        matchManager = new MatchManager(this);
        
        getCommand("matchmaking").setExecutor(new MatchmakingCommand(this));
        getCommand("matchmaking").setTabCompleter(new MatchmakingCommand(this));
        getCommand("vote").setExecutor(new VoteCommand(this));
        getCommand("vote").setTabCompleter(new VoteCommand(this));
        
        Bukkit.getPluginManager().registerEvents(new PlayerDamageListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerDeathListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerQuitListener(this), this);
        
        getLogger().info("MatchmakingPvP has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (countdownManager != null && countdownManager.isRunning()) {
            countdownManager.cancel();
        }
        
        getLogger().info("MatchmakingPvP has been disabled!");
    }
}