brennanw1lls735-cell

can you make me a plugin that allows me to set a half of players be white then the other half of the players will be red. allow me to set them and also message that team even though I'm not in the team. Just like unstableSMP

can you make the plugin author _1TECHY1_.

Kodari AI
KodariAug 27 at 10:53 pm 3
TeamSplitter
A Minecraft plugin that randomly splits all online players into two equal teams, White and Red. Provides commands to trigger the split, manually assign players to either team, and send messages to a specific team even if the sender is not a member. Includes team management, color-coded chat prefixes, and persistent team storage. Designed for SMP-style gameplay, enabling admins to organize balanced team-based events or wars with ease.
  1. Create a Paper plugin with persistent white/red team assignments and scoreboard prefixes.

  2. Add balanced half-and-half assignment for online players plus admin set/remove/list commands.

  3. Add team messaging that can target either team regardless of the sender’s own team, with chat aliases.

  4. Add Gradle build files and plugin configuration using author _1TECHY1_.

Created the UnstableSMP-style team plugin by _1TECHY1_.

Features:

  • Splits online players evenly between White and Red teams.

  • Persistent team assignments saved in config.yml.

  • Scoreboard team prefixes: [WHITE] and [RED].

  • Admin commands:

    • /teams balance

    • /teams set <player> <white|red>

    • /teams remove <player>

    • /teams list [white|red]

    • /teams info [player]

  • Team messaging usable by anyone, including outsiders:

    • /teamchat <white|red> <message>

    • /tc <white|red> <message>

    • /wt <message>

    • /rt <message>

  • Tab completion and permission node:

    • teambalance.admin

  • Author configured as _1TECHY1_.

Kodari can make mistakes. Review important code before using.
Files
src
Code
5 460
src/main/java/com/onetechy/teambalance/TeamBalancePlugin.java
package com.onetechy.teambalance;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class TeamBalancePlugin extends JavaPlugin {
    private TeamManager teamManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        teamManager = new TeamManager(this);
        teamManager.load();

        TeamCommand teamCommand = new TeamCommand(teamManager);
        PluginCommand command = getCommand("teams");
        if (command != null) {
            command.setExecutor(teamCommand);
            command.setTabCompleter(teamCommand);
        }

        getServer().getPluginManager().registerEvents(new TeamListener(teamManager), this);
        teamManager.applyToOnlinePlayers();
    }

    @Override
    public void onDisable() {
        if (teamManager != null) {
            teamManager.save();
        }
    }
}