-
Автор темы
- #1
Простая и иногда полезная фигня =3.Пользуйтесь на здоровье!
Java:
package fun.rich.client.command.impl;
import fun.rich.client.command.CommandAbstract;
import fun.rich.client.utils.other.ChatUtils;
public class TimerCommand
extends CommandAbstract {
public float timerValue;
public TimerCommand() {
super("timer + <value>", "timer", ".timer <value>", "timer");
}
@Override
public void execute(String... args) {
if (args.length == 2) {
if (args[0].equals("timer")) {
float timerValue = Float.parseFloat(args[1]);
mc.timer.timerSpeed = timerValue;
} else {
ChatUtils.addChatMessage(this.getUsage());
}
}
}
}
// GhatCPT