diff options
author | syeyoung <cyong06@naver.com> | 2021-08-16 23:53:39 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-08-16 23:53:39 +0900 |
commit | cd88dae4b9c9c2204e554612e517d5b491e75c13 (patch) | |
tree | f2528e0045d9f67972f14492b54606b4265e5d5c /src/main/java/kr | |
parent | 3cc57a96a3ba4c512c006516fc9a8f5374f8198e (diff) | |
download | Skyblock-Dungeons-Guide-cd88dae4b9c9c2204e554612e517d5b491e75c13.tar.gz Skyblock-Dungeons-Guide-cd88dae4b9c9c2204e554612e517d5b491e75c13.tar.bz2 Skyblock-Dungeons-Guide-cd88dae4b9c9c2204e554612e517d5b491e75c13.zip |
Ok great.
As you wanted, spamm logs are gone.
Diffstat (limited to 'src/main/java/kr')
6 files changed, 18 insertions, 10 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc/FeatureDisableMessage.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc/FeatureDisableMessage.java index e8d9531c..b530a444 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc/FeatureDisableMessage.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc/FeatureDisableMessage.java @@ -69,7 +69,6 @@ public class FeatureDisableMessage extends SimpleFeature implements ChatListener if (!isEnabled()) return; if (!skyblockStatus.isOnSkyblock()) return; String msg = clientChatReceivedEvent.message.getFormattedText(); - System.out.println(msg); for (MessageData md:PRE_DEFINED) { if (this.<Boolean>getParameter(md.key).getValue() && md.pattern.matcher(msg).matches()) { clientChatReceivedEvent.setCanceled(true); diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/mechanicbrowser/PanelMechanicBrowser.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/mechanicbrowser/PanelMechanicBrowser.java index e1c5359f..72ce5e01 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/mechanicbrowser/PanelMechanicBrowser.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/mechanicbrowser/PanelMechanicBrowser.java @@ -244,7 +244,6 @@ public class PanelMechanicBrowser extends MPanelScaledGUI { DungeonMechanic dungeonMechanic1 = dungeonRoom.getMechanics().get(id); if (dungeonMechanic1 != dungeonMechanic) return; Set<String> states = dungeonMechanic1.getPossibleStates(dungeonRoom); - System.out.println(states); if (mechanicBrowserTooltip != null) { diff --git a/src/main/java/kr/syeyoung/dungeonsguide/party/PartyManager.java b/src/main/java/kr/syeyoung/dungeonsguide/party/PartyManager.java index 7382f203..3ac637c9 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/party/PartyManager.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/party/PartyManager.java @@ -30,12 +30,17 @@ import kr.syeyoung.dungeonsguide.utils.TextUtils; import lombok.Getter; import lombok.Setter; import net.minecraft.client.Minecraft; +import net.minecraft.client.gui.GuiNewChat; import net.minecraft.util.ChatComponentText; import net.minecraft.util.Tuple; import net.minecraftforge.client.event.ClientChatReceivedEvent; import net.minecraftforge.fml.common.eventhandler.EventPriority; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.TickEvent; +import org.apache.logging.log4j.Level; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; +import org.apache.logging.log4j.simple.SimpleLogger; import org.json.JSONArray; import org.json.JSONObject; @@ -69,6 +74,18 @@ public class PartyManager implements StompMessageHandler { @Setter private int maxParty = 5; + private static final Logger logger = LogManager.getLogger(); + + + private PartyManager() { + Logger l = LogManager.getLogger(GuiNewChat.class); + if (l instanceof SimpleLogger) { + ((SimpleLogger) l).setLevel(Level.OFF); + } else if (l instanceof org.apache.logging.log4j.core.Logger) { + ((org.apache.logging.log4j.core.Logger) l).setLevel(Level.OFF); + } + } + public void toggleAllowAskToJoin() { if (canInvite) allowAskToJoin = !allowAskToJoin; if (allowAskToJoin) { @@ -131,6 +148,7 @@ public class PartyManager implements StompMessageHandler { if (chatReceivedEvent.type == 2) return; String str = chatReceivedEvent.message.getFormattedText(); + logger.log(Level.INFO, "[CHAT] "+str); try { @@ -152,7 +170,6 @@ public class PartyManager implements StompMessageHandler { members.add(player); } } else if (str.equals("§9§m-----------------------------§r")) { - System.out.println(checkPlayer + " - "+partyJoin + " - "+invitedDash); if ((checkPlayer > 0 || partyJoin > 0) && partyJoin != 100) { chatReceivedEvent.setCanceled(true); } diff --git a/src/main/java/kr/syeyoung/dungeonsguide/rpc/RichPresenceManager.java b/src/main/java/kr/syeyoung/dungeonsguide/rpc/RichPresenceManager.java index 523dbf2c..e8b1cb7a 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/rpc/RichPresenceManager.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/rpc/RichPresenceManager.java @@ -65,7 +65,6 @@ public class RichPresenceManager implements Runnable { @Getter private int lastSetupCode = -99999; public int setup() { - System.out.println("SETUP!!! "+ iDiscordCore); if (iDiscordCore != null) { iDiscordCore.Destroy.destroy(iDiscordCore); activityManager = null; callbacks = null; relation_callbacks = null; relationMap.clear(); diff --git a/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java b/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java index 80d1ea7a..6bb45a84 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java @@ -53,14 +53,10 @@ public class StompPayload { if (payload != null) sb.append(payload); sb.append((char) 0); - if (!sb.toString().contains("cosmetic")) - System.out.println("Probably sending "+ sb); return sb.toString(); } public static StompPayload parse(String payload) { - if (!payload.contains("cosmetic")) - System.out.println("Parsing "+payload); Scanner scanner = new Scanner(payload); StompPayload stompPayload = new StompPayload(); stompPayload.method = StompHeader.valueOf(scanner.nextLine()); diff --git a/src/main/java/kr/syeyoung/dungeonsguide/utils/cursor/GLCursors.java b/src/main/java/kr/syeyoung/dungeonsguide/utils/cursor/GLCursors.java index 185edec1..832e3b0a 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/utils/cursor/GLCursors.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/utils/cursor/GLCursors.java @@ -82,7 +82,6 @@ public class GLCursors { if (enumCursorCursorMap.size() != 0) return; int platform = LWJGLUtil.getPlatform(); for (EnumCursor value : EnumCursor.values()) { - System.out.println("Loading "+value); Cursor c = null; try { switch(platform) { @@ -105,7 +104,6 @@ public class GLCursors { } try { if (c == null) { - System.out.println("Loading image cursor "+value); int hotspotX = 0, hotspotY = 0; BufferedImage bufferedImage = null; int minC = Cursor.getMinCursorSize(), maxC = Cursor.getMaxCursorSize(); |