diff options
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/commands/profile/PvCommand.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/commands/profile/PvCommand.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/commands/profile/PvCommand.java b/src/main/java/io/github/moulberry/notenoughupdates/commands/profile/PvCommand.java new file mode 100644 index 00000000..07394ffd --- /dev/null +++ b/src/main/java/io/github/moulberry/notenoughupdates/commands/profile/PvCommand.java @@ -0,0 +1,22 @@ +package io.github.moulberry.notenoughupdates.commands.profile; + +import io.github.moulberry.notenoughupdates.NotEnoughUpdates; +import net.minecraft.client.Minecraft; +import net.minecraft.command.ICommandSender; +import org.apache.commons.lang3.StringUtils; + +public class PvCommand extends ViewProfileCommand { + + public PvCommand() { + super("pv"); + } + + @Override + public void processCommand(ICommandSender sender, String[] args) { + if (!NotEnoughUpdates.INSTANCE.isOnSkyblock()) { + Minecraft.getMinecraft().thePlayer.sendChatMessage("/pv " + StringUtils.join(args, " ")); + } else { + super.processCommand(sender, args); + } + } +} |
