Skip to content

Commit

Permalink
fix: Add missing player info parser to ArcCommandManager
Browse files Browse the repository at this point in the history
  • Loading branch information
phinner committed Nov 11, 2023
1 parent 1506167 commit f2aa558
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import cloud.commandframework.meta.CommandMeta;
import fr.xpdustry.distributor.api.DistributorProvider;
import fr.xpdustry.distributor.api.command.argument.PlayerArgument;
import fr.xpdustry.distributor.api.command.argument.PlayerInfoArgument;
import fr.xpdustry.distributor.api.command.argument.TeamArgument;
import fr.xpdustry.distributor.api.command.argument.TeamArgument.TeamMode;
import fr.xpdustry.distributor.api.command.sender.CommandSender;
Expand All @@ -43,6 +44,7 @@
import java.util.function.Function;
import mindustry.game.Team;
import mindustry.gen.Player;
import mindustry.net.Administration;
import org.checkerframework.checker.nullness.qual.MonotonicNonNull;

/**
Expand Down Expand Up @@ -143,6 +145,11 @@ public ArcCommandManager(
this.parserRegistry()
.registerParserSupplier(TypeToken.get(Player.class), params -> new PlayerArgument.PlayerParser<>());

this.parserRegistry()
.registerParserSupplier(
TypeToken.get(Administration.PlayerInfo.class),
params -> new PlayerInfoArgument.PlayerInfoParser<>());

this.parserRegistry()
.registerParserSupplier(
TypeToken.get(Team.class),
Expand Down

0 comments on commit f2aa558

Please sign in to comment.