blob: 98296aeeb66cebe95c19aa0f51b9a6df138dc379 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package com.example.commands;
import com.example.Settings;
import com.example.commands.ClientCommandBase;
import net.minecraft.client.Minecraft;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommandSender;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.EnumChatFormatting;
public class EnchantRuneCommand extends ClientCommandBase {
public EnchantRuneCommand() {
super("enchantrune");
}
@Override
public void processCommand(ICommandSender sender, String[] args) throws CommandException {
Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(
EnumChatFormatting.BLACK+ "" + EnumChatFormatting.BOLD + "TOGGLED."));
Settings.EnchantRune = !Settings.EnchantRune;
}
}
|