Skip to content

Team Argument

Returns Team, must be an unquoted string, executions only run when there is a valid player. Example:

Java
new StellarCommand("setcolor")
    .addTeamArgument("team")
    .addColorArgument("color")
    .addExecution<Player>(Player.class, context -> {
        Team team = getArgument<Team>("team");
        Style color = getArgument<Style>("color");
        team.setColor(color);
    });

Team Argument

Released under the MIT License.