From c8b75f0c72164fefc3ba375f16bd717d8ce7212b Mon Sep 17 00:00:00 2001 From: Matthias Luger Date: Thu, 16 Mar 2023 18:46:49 +0100 Subject: lower case all internal openAuctionGui commands --- src/main/java/de/torui/coflsky/WSCommandHandler.java | 2 +- src/main/java/de/torui/coflsky/handlers/EventRegistry.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/torui/coflsky/WSCommandHandler.java b/src/main/java/de/torui/coflsky/WSCommandHandler.java index 83e9222..8d22b62 100644 --- a/src/main/java/de/torui/coflsky/WSCommandHandler.java +++ b/src/main/java/de/torui/coflsky/WSCommandHandler.java @@ -166,7 +166,7 @@ public class WSCommandHandler { private static IChatComponent CommandToChatComponent(ChatMessageData wcmd, String fullMessage) { if (wcmd.OnClick != null) { if (wcmd.Text != null && wcmd.OnClick.startsWith("/viewauction")) { - lastOnClickEvent = "/cofl openAuctionGUI " + wcmd.OnClick.split(" ")[1] + " false"; + lastOnClickEvent = "/cofl openauctiongui " + wcmd.OnClick.split(" ")[1] + " false"; } else { lastOnClickEvent = "/cofl callback " + wcmd.OnClick; } diff --git a/src/main/java/de/torui/coflsky/handlers/EventRegistry.java b/src/main/java/de/torui/coflsky/handlers/EventRegistry.java index a88e703..81300ad 100644 --- a/src/main/java/de/torui/coflsky/handlers/EventRegistry.java +++ b/src/main/java/de/torui/coflsky/handlers/EventRegistry.java @@ -68,7 +68,7 @@ public class EventRegistry { if (WSCommandHandler.lastOnClickEvent != null) { FlipData f = WSCommandHandler.flipHandler.fds.GetLastFlip(); if (f != null) { - WSCommandHandler.Execute("/cofl openAuctionGUI " + f.Id + " false", + WSCommandHandler.Execute("/cofl openauctiongui " + f.Id + " false", Minecraft.getMinecraft().thePlayer); } } @@ -80,7 +80,7 @@ public class EventRegistry { FlipData f = WSCommandHandler.flipHandler.fds.GetHighestFlip(); if (f != null) { - WSCommandHandler.Execute("/cofl openAuctionGUI " + f.Id + " true", + WSCommandHandler.Execute("/cofl openauctiongui " + f.Id + " true", Minecraft.getMinecraft().thePlayer); EventRegistry.LastViewAuctionUUID = f.Id; EventRegistry.LastViewAuctionInvocation = System.currentTimeMillis(); -- cgit