Scan to open on your phone
Point a camera at the QR code - it opens this exact paste, no app needed.
https://codepastes.com/zzgs5843bn058q7fProfessionsCommandJava
package net.mauwachtel.disable_professsions;
import com.mojang.brigadier.context.CommandContext;
import net.minecraft.client.Minecraft;
import net.minecraft.commands.CommandSourceStack;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.Identifier;
public class ProfessionsCommand {
public static int runDisable(CommandContext<CommandSourceStack> context, String profession) {
context.getSource().sendSuccess(() -> Component.literal("disabled" + profession), false);
return 0;
}
public static int runEnable(CommandContext<CommandSourceStack> context, String profession) {
context.getSource().sendSuccess(() -> Component.literal("enabled" + profession), false);
return 0;
}
public static int runError(CommandContext<CommandSourceStack> context) {
context.getSource().sendSuccess(() -> Component.literal("error"), false);
return 0;
}
}
933 chars · codepastes.com