package xyz.twovb.sgm.commands.impl; /* * Created by 2vb - 6/7/2024 */ import dev.rollczi.litecommands.annotations.argument.Arg; import dev.rollczi.litecommands.annotations.command.Command; import dev.rollczi.litecommands.annotations.context.Context; import dev.rollczi.litecommands.annotations.execute.Execute; import dev.rollczi.litecommands.annotations.permission.Permission; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import xyz.twovb.sgm.SGM; import xyz.twovb.sgm.games.impl.capturethebrick.CTB; import xyz.twovb.toolbox.managers.PlaceholderManager; import xyz.twovb.toolbox.utils.ChatUtils; @Command(name = "jail") @Permission("twovb.debug") public class JailCommand { @Execute void command(@Context Player player, @Arg("target") Player target) { CTB game = (CTB) SGM.getInstance().getGameManager().findGame(player); if (game != null) { game.addPlayerToJail(target); } } }