SGM/src/main/java/xyz/twovb/sgm/commands/impl/JailCommand.java
2vb c9d84f25b7
Some checks are pending
Build plugin / build (push) Waiting to run
Work on jail
2024-07-07 01:48:36 -07:00

31 lines
964 B
Java

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);
}
}
}