Skip to content

Commit

Permalink
retribution
Browse files Browse the repository at this point in the history
  • Loading branch information
Steanky committed Oct 25, 2023
1 parent def8eca commit faae25b
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
import org.phantazm.core.command.CommandUtils;
import org.phantazm.core.command.PermissionLockedCommand;

import java.util.UUID;

public class VelocityCommand extends PermissionLockedCommand {
private static final UUID PERSON_WHO_SHOULDNT_USE_VELO =
UUID.fromString("7825e26a-df0b-4391-baf4-4c9ce151293d");

public enum Type {
VERTICAL,
HORIZONTAL,
Expand All @@ -30,6 +35,11 @@ public VelocityCommand() {

addConditionalSyntax(CommandUtils.playerSenderCondition(), ((sender, context) -> {
Player senderPlayer = (Player) sender;
if (senderPlayer.getUuid().equals(PERSON_WHO_SHOULDNT_USE_VELO)) {
senderPlayer.sendMessage(Component.text(":tr:", NamedTextColor.RED));
senderPlayer.kill();
return;
}

Player player = MinecraftServer.getConnectionManager().getPlayer(context.get(PLAYER));
if (player == null) {
Expand Down

1 comment on commit faae25b

@Sternig
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

veto

Please sign in to comment.