Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #196 from rettichlp/hotfix
Browse files Browse the repository at this point in the history
Release v1.3.1
  • Loading branch information
rettichlp committed Aug 17, 2022
2 parents fb8e783 + 85850d9 commit 1dcb4af
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 27 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'idea'
apply plugin: 'maven-publish'

version = '1.3.0'
version = '1.3.1'
group = 'com.rettichlp' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'UnicacityAddon'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
@Mod(name = "UnicacityAddon", modid = "unicacityaddon", version = UnicacityAddon.VERSION, clientSideOnly = true, acceptedMinecraftVersions = "[1.12,1.12.2]")
public class UnicacityAddon extends LabyModAddon {

public static final String VERSION = "1.3.0";
public static final String VERSION = "1.3.1";
public static final Minecraft MINECRAFT = Minecraft.getMinecraft();
public static UnicacityAddon ADDON;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.rettichlp.UnicacityAddon.events;

import com.rettichlp.UnicacityAddon.base.abstraction.AbstractionLayer;
import com.rettichlp.UnicacityAddon.base.registry.annotation.UCEvent;
import com.rettichlp.UnicacityAddon.base.text.PatternHandler;
import net.minecraftforge.client.event.ClientChatReceivedEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
Expand All @@ -11,6 +12,7 @@
* @author Fuzzlemann
* @see <a href="https://github.com/paulzhng/UCUtils/blob/master/src/main/java/de/fuzzlemann/ucutils/events/CheckKFZEventHandler.java">UCUtils by paulzhng</a>
*/
@UCEvent
public class CheckKFZEventHandler {

@SubscribeEvent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public boolean onClientChatReceived(ClientChatReceivedEvent e) {

if (PatternHandler.ACCOUNT_WELCOME_BACK_PATTERN.matcher(msg).find()) {
MobileEventHandler.activeCommunicationsCheck = true;
PayDayEventHandler.isAfk = false;
handleJoin();
return false;
}
Expand Down Expand Up @@ -63,31 +64,31 @@ public void run() {
p.sendChatMessage("/mobile");

// AUTOMATE_COMMAND_SETTINGS
if (!ConfigElements.getCommandAutomation()) return;

// AUTOMATE_COMMAND_FIRST_SETTINGS
new Timer().schedule(new TimerTask() {
@Override
public void run() {
if (!ConfigElements.getFirstCommand().isEmpty()) p.sendChatMessage(ConfigElements.getFirstCommand());
}
}, 500);

// AUTOMATE_COMMAND_SECOND_SETTINGS
new Timer().schedule(new TimerTask() {
@Override
public void run() {
if (!ConfigElements.getSecondCommand().isEmpty()) p.sendChatMessage(ConfigElements.getSecondCommand());
}
}, 1000);

// AUTOMATE_COMMAND_THIRD_SETTINGS
new Timer().schedule(new TimerTask() {
@Override
public void run() {
if (!ConfigElements.getThirdCommand().isEmpty()) p.sendChatMessage(ConfigElements.getThirdCommand());
}
}, 1500);
if (ConfigElements.getCommandAutomation()) {
// AUTOMATE_COMMAND_FIRST_SETTINGS
new Timer().schedule(new TimerTask() {
@Override
public void run() {
if (!ConfigElements.getFirstCommand().isEmpty()) p.sendChatMessage(ConfigElements.getFirstCommand());
}
}, 500);

// AUTOMATE_COMMAND_SECOND_SETTINGS
new Timer().schedule(new TimerTask() {
@Override
public void run() {
if (!ConfigElements.getSecondCommand().isEmpty()) p.sendChatMessage(ConfigElements.getSecondCommand());
}
}, 1000);

// AUTOMATE_COMMAND_THIRD_SETTINGS
new Timer().schedule(new TimerTask() {
@Override
public void run() {
if (!ConfigElements.getThirdCommand().isEmpty()) p.sendChatMessage(ConfigElements.getThirdCommand());
}
}, 1500);
}

// UPDATECHECKER
new Timer().schedule(new TimerTask() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package com.rettichlp.UnicacityAddon.events;

import com.rettichlp.UnicacityAddon.base.abstraction.AbstractionLayer;
import com.rettichlp.UnicacityAddon.base.registry.annotation.UCEvent;
import com.rettichlp.UnicacityAddon.base.text.PatternHandler;
import net.minecraftforge.client.event.ClientChatReceivedEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

/**
* @author Dimiikou
*/
@UCEvent
public class ReviveEventHandler {

@SubscribeEvent
Expand Down

0 comments on commit 1dcb4af

Please sign in to comment.