Не знаю кому надо, но прикольно + не кикает за афк import com.google.common.eventbus.Subscribe; import com.jagrosh.discordipc.IPCClient; import im.expensive.functions.api.Category; import im.expensive.functions.api.Function; import im.expensive.functions.api.FunctionRegister; import im.expensive.functions.settings.impl.SliderSetting; import net.minecraftforge.eventbus.api.Event; @FunctionRegister(name = "GetBalance", type = Category.Misc) public class GetBalance extends Function { private final SliderSetting time = new SliderSetting("Заддержка", 30, 5, 60, 5); private long lastSentTime = 0; public GetBalance() { addSettings(this.time); } @Subscribe public void onEvent(Event event) { func(); } public void func() { long currentTime = System.currentTimeMillis(); long delay = this.time.get().longValue() * 1000; if (currentTime - lastSentTime >= delay) { mc.player.sendChatMessage("/ebal"); lastSentTime = currentTime; } } }