2018-09-13 12:03:28 -04:00
|
|
|
package foxz.command;
|
|
|
|
|
|
|
|
|
|
import net.minecraft.command.CommandBase;
|
|
|
|
|
import net.minecraft.command.ICommandSender;
|
2026-01-24 16:03:54 -05:00
|
|
|
import net.minecraft.util.ChatComponentText;
|
|
|
|
|
import net.minecraft.util.EnumChatFormatting;
|
2018-09-13 12:03:28 -04:00
|
|
|
|
2024-02-15 17:54:28 -05:00
|
|
|
import java.util.List;
|
|
|
|
|
|
2026-01-24 16:03:54 -05:00
|
|
|
/**
|
|
|
|
|
* @deprecated The /noppes command is deprecated and no longer supported.
|
|
|
|
|
* Please use the /kam command instead for all CNPC+ operations.
|
|
|
|
|
*/
|
|
|
|
|
@Deprecated
|
2018-09-13 12:03:28 -04:00
|
|
|
public class CommandNoppes extends CommandBase {
|
|
|
|
|
|
|
|
|
|
public CmdNoppes noppes = new CmdNoppes(this);
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getCommandName() {
|
|
|
|
|
return noppes.commandHelper.name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getCommandUsage(ICommandSender var1) {
|
|
|
|
|
return noppes.commandHelper.usage;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void processCommand(ICommandSender var1, String[] var2) {
|
2026-01-24 16:03:54 -05:00
|
|
|
// Send deprecation warning
|
|
|
|
|
var1.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "[DEPRECATED] " +
|
|
|
|
|
EnumChatFormatting.YELLOW + "The /noppes command is deprecated and no longer supported."));
|
|
|
|
|
var1.addChatMessage(new ChatComponentText(EnumChatFormatting.YELLOW +
|
|
|
|
|
"Please use " + EnumChatFormatting.GREEN + "/kam" + EnumChatFormatting.YELLOW + " commands instead."));
|
|
|
|
|
var1.addChatMessage(new ChatComponentText(EnumChatFormatting.GRAY +
|
|
|
|
|
"Type " + EnumChatFormatting.WHITE + "/kam help" + EnumChatFormatting.GRAY + " for available commands."));
|
|
|
|
|
|
|
|
|
|
// Still execute the command for backwards compatibility
|
2018-09-13 12:03:28 -04:00
|
|
|
noppes.processCommand(var1, var2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2025-03-12 20:12:01 -04:00
|
|
|
public List addTabCompletionOptions(ICommandSender par1, String[] par2) {
|
2018-09-13 12:03:28 -04:00
|
|
|
return noppes.addTabCompletion(par1, par2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2025-03-12 20:12:01 -04:00
|
|
|
public int getRequiredPermissionLevel() {
|
2018-09-13 12:03:28 -04:00
|
|
|
return 2;
|
|
|
|
|
}
|
|
|
|
|
}
|