diff options
| author | HacktheTime <l4bg0jb7@duck.com> | 2023-10-13 18:22:33 +0200 |
|---|---|---|
| committer | HacktheTime <l4bg0jb7@duck.com> | 2023-10-13 18:22:33 +0200 |
| commit | e3d509924c44678e6c8f07bd0e33a75db894c810 (patch) | |
| tree | b3c03f3c3a96331061e8eb305ef75bbe6a33da4d /forge/src/main/java | |
| parent | 76acd0ddad4230728fd5db6aad0918c25138e5cb (diff) | |
| download | BBsentials-e3d509924c44678e6c8f07bd0e33a75db894c810.tar.gz BBsentials-e3d509924c44678e6c8f07bd0e33a75db894c810.tar.bz2 BBsentials-e3d509924c44678e6c8f07bd0e33a75db894c810.zip | |
more changes
Diffstat (limited to 'forge/src/main/java')
24 files changed, 1948 insertions, 0 deletions
diff --git a/forge/src/main/java/de/hype/bbsentials/forge/ExampleMod.java b/forge/src/main/java/de/hype/bbsentials/forge/ExampleMod.java new file mode 100644 index 0000000..9a118a1 --- /dev/null +++ b/forge/src/main/java/de/hype/bbsentials/forge/ExampleMod.java @@ -0,0 +1,36 @@ +package de.hype.bbsentials.forge; + +import de.hype.bbsentials.forge.client.BBsentials; +import de.hype.bbsentials.forge.client.CommandBBI; +import net.minecraftforge.client.ClientCommandHandler; +import net.minecraftforge.common.MinecraftForge; +import net.minecraftforge.event.entity.EntityJoinWorldEvent; +import net.minecraftforge.fml.common.Mod; +import net.minecraftforge.fml.common.event.FMLInitializationEvent; +import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; + +@Mod(modid = "bbsentials", useMetadata = true) +public class ExampleMod { + static boolean alreadyInialised = false; + static BBsentials sentials = new BBsentials(); + + @Mod.EventHandler + public void init(FMLInitializationEvent event) { + MinecraftForge.EVENT_BUS.register(this); + } + + public void clientSetup() { + if (!alreadyInialised) { + ClientCommandHandler.instance.registerCommand(new CommandBBI()); + alreadyInialised = true; + sentials.init(); + } + } + + @SubscribeEvent + public void onEntityJoinWorld(EntityJoinWorldEvent event) { + clientSetup(); + MinecraftForge.EVENT_BUS.unregister(this); + } +} + diff --git a/forge/src/main/java/de/hype/bbsentials/forge/Temphook.java b/forge/src/main/java/de/hype/bbsentials/forge/Temphook.java new file mode 100644 index 0000000..9b0ce86 --- /dev/null +++ b/forge/src/main/java/de/hype/bbsentials/forge/Temphook.java @@ -0,0 +1,18 @@ +package de.hype.bbsentials.forge; + +import de.hype.bbsentials.forge.client.BBsentials; +import net.minecraft.client.gui.FontRenderer; +import net.minecraft.item.ItemStack; +import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; + +public class Temphook { + public static void renderItemOverlayPost(FontRenderer fr, ItemStack stack, int xPosition, int yPosition, String text, CallbackInfo ci) { + if (BBsentials.config.highlightitem) { + if (stack != null) { + if (stack.getDisplayName().contains(BBsentials.bbserver.getItemName())) { + stack.setStackDisplayName("§6(Bingo Splash) " + stack.getDisplayName()); + } + } + } + } +}
\ No newline at end of file diff --git a/forge/src/main/java/de/hype/bbsentials/forge/chat/Chat.java b/forge/src/main/java/de/hype/bbsentials/forge/chat/Chat.java new file mode 100644 index 0000000..ec81c52 --- /dev/null +++ b/forge/src/main/java/de/hype/bbsentials/forge/chat/Chat.java @@ -0,0 +1,580 @@ +package de.hype.bbsentials.forge.chat; + +import de.hype.bbsentials.forge.client.BBsentials; +import de.hype.bbsentials.forge.client.Config; +import net.minecraft.client.Minecraft; +import net.minecraft.util.ChatComponentText; +import net.minecraft.util.EnumChatFormatting; +import net.minecraft.util.IChatComponent; +import net.minecraftforge.client.event.ClientChatReceivedEvent; +import net.minecraftforge.common.MinecraftForge; +import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; +import org.lwjgl.opengl.Display; + +import javax.sound.sampled.AudioInputStream; +import javax.sound.sampled.AudioSystem; +import javax.sound.sampled.Clip; +import java.io.IOException; +import java.io.InputStream; +import java.lang.reflect.Field; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Modifier; +import java.time.Instant; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.Callable; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.FutureTask; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import static de.hype.bbsentials.forge.client.BBsentials.config; +import static de.hype.bbsentials.forge.client.BBsentials.getConfig; + +public class Chat { + public Chat() { + init(); + } + + public static String[] getVariableInfo(String packageName, String className) { + List<String> variableInfoList = new ArrayList<>(); + + // Combine the class name with the package name + String fullClassName = packageName + "." + className; + + // Load the class + Class<?> clazz = null; + try { + clazz = Class.forName(fullClassName); + } catch (ClassNotFoundException e) { + e.printStackTrace(); + } + + // Extract fields of the class + Field[] fields = clazz.getDeclaredFields(); + + // Collect information for each field + for (Field field : fields) { + // Exclude transient fields + if (Modifier.isTransient(field.getModifiers())) { + continue; + } + + String variableName = field.getName(); + String variablePackageName = clazz.getPackage().getName(); + String variableClassName = clazz.getSimpleName(); + + String variableInfo = variableName; + variableInfoList.add(variableInfo); + } + + return variableInfoList.toArray(new String[variableInfoList.size()]); + } + + public static void setVariableValue(Object obj, String variableName, String value) throws ClassNotFoundException, NoSuchFieldException, IllegalAccessException, InstantiationException, InvocationTargetException, NoSuchMethodException { + if (value == null) { + // Handle null value case + sendPrivateMessageToSelf(EnumChatFormatting.RED + "Invalid value: null"); + return; + } + + Class<?> objClass = obj.getClass(); + Field field = objClass.getDeclaredField(variableName); + field.setAccessible(true); + + // Get the type of the field + Class<?> fieldType = field.getType(); + + // Convert the value to the appropriate type + Object convertedValue = parseValue(value, fieldType); + + if (Modifier.isStatic(field.getModifiers())) { + // If the field is static + field.set(null, convertedValue); + } + else { + field.set(obj, convertedValue); + } + + // Check and output the value of the variable + sendPrivateMessageToSelf(EnumChatFormatting.GREEN + "The variable " + field.getName() + " is now: " + field.get(obj)); + } + + private static Object parseValue(String value, Class<?> targetType) { + if (targetType == int.class || targetType == Integer.class) { + return Integer.parseInt(value); + } + else if (targetType == double.class || targetType == Double.class) { + return Double.parseDouble(value); + } + else if (targetType == float.class || targetType == Float.class) { + return Float.parseFloat(value); + } + else if (targetType == long.class || targetType == Long.class) { + return Long.parseLong(value); + } + else if (targetType == boolean.class || targetType == Boolean.class) { + return Boolean.parseBoolean(value); + } + else { + // For other types, return the original string value + return value; + } + } + + public static void getVariableValue(Object object, String variableName) throws NoSuchFieldException, IllegalAccessException { + Class<?> objClass = object.getClass(); + Field field = objClass.getDeclaredField(variableName); + field.setAccessible(true); + sendPrivateMessageToSelf(EnumChatFormatting.GREEN + "The variable " + field.getName() + " is: " + field.get(object)); + } + + private void init() { + MinecraftForge.EVENT_BUS.register(this); + } + + @SubscribeEvent + public void onClientChatReceived(ClientChatReceivedEvent event) { + IChatComponent newMessage = onEvent(event.message); + if (!newMessage.equals(event.message)){ + event.setCanceled(true); + Chat.sendPrivateMessageToSelfText(newMessage); + } + } + + private net.minecraft.util.IChatComponent onEvent(net.minecraft.util.IChatComponent message) { + Callable<net.minecraft.util.IChatComponent> callable = () -> { + if (!isSpam(message.toString())) { + if (getConfig().isDetailedDevModeEnabled()) { + System.out.println("got a message: " + net.minecraft.util.IChatComponent.Serializer.componentToJson(message)); + } + return handleInClient(message); + } + return message; // Return the original message if it is spam + }; + + FutureTask<net.minecraft.util.IChatComponent> future = new FutureTask<>(callable); + Thread thread = new Thread(future); + thread.start(); + + try { + return future.get(); // Retrieve the result from the background thread + } catch (InterruptedException | ExecutionException e) { + // Handle exceptions, if needed + e.printStackTrace(); + } + + return message; // Return the original message if an exception occurred + } + + //Handle in client + public net.minecraft.util.IChatComponent handleInClient(net.minecraft.util.IChatComponent messageOriginal) { + String message = extractPlainText(messageOriginal.toString()).trim(); + if (getConfig().messageFromAlreadyReported(message) && getPlayerNameFromMessage(message) != " " && getPlayerNameFromMessage(message) != "") { + System.out.println("Message: " + message); + sendPrivateMessageToSelf(EnumChatFormatting.RED + "B: " + message); + return null; + } + if (getConfig().isDevModeEnabled()) { + System.out.println("Got message to analyse internally: " + message); + } + //party accepter + if (message != null) { + if (message.contains("party")) { + if (message.contains("disbanded the party")) { + lastPartyDisbandedMessage = message; + partyDisbandedMap.put(getPlayerNameFromMessage(message), Instant.now()); + if (getConfig().isDevModeEnabled()) { + sendPrivateMessageToSelf("Watching next 20 Sec for invite: " + getPlayerNameFromMessage(message)); + } + } + else if (message.contains("invited you to join their party")) { + if (lastPartyDisbandedMessage != null && partyDisbandedMap != null) { + Instant lastDisbandedInstant = partyDisbandedMap.get(getPlayerNameFromMessage(lastPartyDisbandedMessage)); + if (lastDisbandedInstant != null && lastDisbandedInstant.isAfter(Instant.now().minusSeconds(20)) && (getPlayerNameFromMessage(message).equals(getPlayerNameFromMessage(lastPartyDisbandedMessage)))) { + sendCommand("/p accept " + getPlayerNameFromMessage(lastPartyDisbandedMessage)); + } + } + if (!Display.isActive()) { + sendNotification("BBsentials Party Notifier", "You got invited too a party by: " + getPlayerNameFromMessage(message)); + } + + } + else if (message.equals("Party > " + BBsentials.getConfig().getUsername() + ": rp")) { + sendCommand("/pl"); + repartyActive = true; + } + else if (message.startsWith("Party Members (")) { + Config.partyMembers = new ArrayList<String>(); + } + else if (message.startsWith("Party Moderators:") && repartyActive) { + message = message.replace("Party Moderators:", "").replace(" ●", "").replaceAll("\\s*\\[[^\\]]+\\]", "").trim(); + if (message.contains(",")) { + for (int i = 0; i < message.split(",").length; i++) { + Config.partyMembers.add(message.split(",")[i - 1]); + } + } + else { + Config.partyMembers.add(message); + } + } + else if (message.startsWith("Party Members:")) { + message = message.replace("Party Members:", "").replace(" ●", "").replaceAll("\\s*\\[[^\\]]+\\]", "").trim(); + if (message.contains(",")) { + for (int i = 0; i < message.split(",").length; i++) { + System.out.println("Added to plist: " + (message.split(",")[i - 1])); + Config.partyMembers.add(message.split(",")[i - 1]); + } + } + else { + Config.partyMembers.add(message); + } + if (repartyActive) { + repartyActive = false; + sendCommand("/p disband"); + for (int i = 0; i < Integer.max(4, getConfig().getPlayersInParty().length); i++) { + if (i < getConfig().getPlayersInParty().length) { + sendCommand("/p invite " + getConfig().getPlayersInParty()[i]); + } + } + } + } + else if (message.endsWith("bb:party me") && message.startsWith("From ")) { + if (BBsentials.getConfig().allowBBinviteMe()) { + sendCommand("/p " + getPlayerNameFromMessage(message.replace("From ", ""))); + } + } + + } //Everything containing party is processed differently (split so fewer checks) + else if (message.contains("unlocked Wither Essence") && message.startsWith(getConfig().getUsername())) { + if (BBsentials.getConfig().isLeader()) { + repartyActive = true; + sendCommand("/pl"); + } + else { + System.out.println("No Reparty because not leader"); + } + if (getConfig().isLeaveDungeonAutomatically()) { + config.sender.addSendTask("/warp dhub", 3); + } + } + else if (message.contains("unlocked Crimson Essence") && message.startsWith(getConfig().getUsername())) { + if (BBsentials.getConfig().isLeader()) { + repartyActive = true; + sendCommand("/pl"); + } + else { + System.out.println("No Reparty because not leader"); + } + try { + Thread.sleep(3000); + } catch (InterruptedException e) { + throw new RuntimeException(e); + } + if (getConfig().isLeaveKuudraAutomatically()) { + sendCommand("/warp kuudra"); + } + } + else if (message.contains("bb:test")) { + sendPrivateMessageToSelf(test()); + } + else if ((message.endsWith("is visiting Your Garden !") || message.endsWith("is visiting Your Island !")) && !Display.isActive()) { + sendNotification("BBsentials Visit-Watcher", message); + } + else if (message.equals("Please type /report confirm to log your report for staff review.")) { + sendCommand("/report confirm"); + } + else if (message.contains(":") && !Display.isActive()) { + if (message.startsWith("Party >")) { + String partyMessage = message.replaceFirst("Party >", "").trim(); + messageOriginal = replaceAllForText(messageOriginal, "\"action\":\"run_command\",\"value\":\"/viewprofile", "\"action\":\"run_command\",\"value\":\"/hci menu pcm " + partyMessage); + if (partyMessage.split(":", 2)[1].toLowerCase().contains(getConfig().getUsername().toLowerCase()) || (partyMessage.toLowerCase().contains(getConfig().getNickname().toLowerCase() + " ") && getConfig().getNotifForParty().toLowerCase().equals("nick")) || getConfig().getNotifForParty().toLowerCase().equals("all")) { + sendNotification("BBsentials Party Chat Notification", partyMessage); + } + } + else if (message.startsWith("From ")) { + String sender = getPlayerNameFromMessage(message.replaceFirst("From", "").trim()); + String content = message.split(":", 2)[1]; + sendNotification("BBsentials Message Notifier", sender + " sent you the following message: " + content); + } + else if (message.toLowerCase().contains("party")) { + if ((message.contains("Party Leader:") && !message.contains(getConfig().getUsername())) || message.equals("You are not currently in a party.") || (message.contains("warped the party into a Skyblock Dungeon") && !message.startsWith(getConfig().getUsername()) || (!message.startsWith("The party was transferred to " + getConfig().getUsername()) && message.startsWith("The party was transferred to"))) || message.equals(getConfig().getUsername() + " is now a Party Moderator") || (message.equals("The party was disbanded because all invites expired and the party was empty.")) || (message.contains("You have joined ") && message.contains("'s party!")) || (message.contains("Party Leader, ") && message.contains(" , summoned you to their server.")) || (message.contains("warped to your dungeon"))) { + BBsentials.getConfig().setIsLeader(false); + if (getConfig().isDetailedDevModeEnabled()) { + sendPrivateMessageToSelf("Leader: " + getConfig().isLeader()); + } + } + if ((message.equals("Party Leader: " + getConfig().getUsername() + " ●")) || (message.contains(getConfig().getUsername() + " warped the party to a SkyBlock dungeon!")) || message.startsWith("The party was transferred to " + getConfig().getUsername()) || message.equals("Raul_J has promoted " + getConfig().getUsername() + " to Party Leader") || (message.contains("warped to your dungeon"))) { + BBsentials.getConfig().setIsLeader(true); + if (getConfig().isDetailedDevModeEnabled()) { + sendPrivateMessageToSelf("Leader: " + getConfig().isLeader()); + } + } + else if (repartyActive && !BBsentials.getConfig().isLeader()) { + repartyActive = false; + sendPrivateMessageToSelf("Resetted Reparty is Active since you are not leader "); + } + } + else { + String[] temp = message.split(":", 2); + String content = temp[temp.length - 1]; + if (temp.length == 2 && (content.toLowerCase().contains(getConfig().getUsername().toLowerCase()) || content.toLowerCase().contains(config.getNickname().toLowerCase() + " "))) { + sendNotification("BBsentials Notifier", "You got mentioned in chat! " + content); + } + } + } + else if (message.equals("You laid an Egg!")) { + Thread eggThread = new Thread(() -> { + try { + Thread.sleep(21000); // Wait for 21 seconds (in milliseconds) + sendPrivateMessageToSelf("Chicken Head is ready"); + } catch (InterruptedException e) { + e.printStackTrace(); + } + }); + + eggThread.start(); + } + else if (message.contains("[OPEN MENU]") || message.contains("YES")) { + setChatPromtId(messageOriginal.toString()); + } + + } + return messageOriginal; + } + + //{"strikethrough":false,"extra":[{"strikethrough":false,"clickEvent":{"action":"run_command","value":"/viewprofile 4fa1228c-8dd6-47c4-8fe3-b04b580311b8"},"hoverEvent":{"action":"show_text","contents":{"strikethrough":false,"text":"§eClick here to view §bHype_the_Time§e's profile"}},"text":"§9Party §8> §b[MVP§2+§b] Hype_the_Time§f: "},{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"text":"h:test"}],"text":""}// {"strikethrough":false,"extra":[{"strikethrough":false,"clickEvent":{"action":"run_command","value":"/viewprofile f772b2c7-bd2a-46e1-b1a2-41fa561157d6"},"hoverEvent":{"action":"show_text","contents":{"strikethrough":false,"text":"§eClick here to view §bShourtu§e's profile"}},"text":"§9Party §8> §b[MVP§c+§b] Shourtu§f: "},{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"text":"Hype_the_Time TEST"}],"text":""} + //{"strikethrough":false,"extra":[{"strikethrough":false,"clickEvent":{"action":"run_command","value":"/viewprofile 4fa1228c-8dd6-47c4-8fe3-b04b580311b8"},"hoverEvent":{"action":"show_text","contents":{"strikethrough":false,"text":"§eClick here to view §bHype_the_Time§e's profile"}},"text":"§9Party §8> §b[MVP§2+§b] Hype_the_Time§f: "},{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"text":"h:test"}],"text":""} + private final Map<String, Instant> partyDisbandedMap = new HashMap<>(); + private String lastPartyDisbandedMessage = null; + + public static String getPlayerNameFromMessage(String message) { + message = message.replaceAll("\\[.*?\\]", "").trim(); + message = message.replaceAll("-----------------------------------------------------", "").replaceAll(":", ""); + String[] temp = message.split(" "); + String playerName = ""; + + for (int i = 0; i < temp.length; i++) { + if (!temp[i].equals(" ") && !temp[i].equals("")) { + playerName = temp[i]; + break; // Stop looping after finding the first non-empty value + } + } + + // Remove the rank from the player name, if it exists + Pattern rankPattern = Pattern.compile("\\s*\\[[^\\]]+\\]"); + playerName = rankPattern.matcher(playerName).replaceAll(" "); + + return playerName; + } + + public String extractPlainText(String input) { + String returns = ""; + String[] literals = input.split("literal\\{"); + if (!input.startsWith("literal")) { + literals[0] = ""; + } + for (int i = 0; i < literals.length; i++) { + if (dontExclude(literals, i) && !literals[i].equals("")) { + String literal = literals[i].split("}")[0]; + + if (!literal.isEmpty()) { + returns = returns + literal; + } + } + } + // Remove § formatting + returns = returns.replaceAll("§.", ""); + // Remove brackets that contain only uppercase letters or pluses + returns = returns.replaceAll("\\[[A-Z+]+\\]", ""); + returns = returns.replaceAll("\\[[0-9]+\\]", ""); + returns = returns.trim(); + returns = returns.replaceAll("\\s+", " "); + + return returns; + } + + private boolean dontExclude(String[] s, int i) { + if ((i - 1) < 0) { + return true; + } + else { + if (s[i - 1].endsWith("value='")) { + return false; + } + else { + return true; + } + } + } + + public boolean isSpam(String message) { + if (message.contains("Mana")) return true; + if (message.contains("Achievement Points")) return true; + return false; + } + + private boolean repartyActive = false; + + public String test() { + //put test code here + sendNotification("test", "This is an example which was run of the h:test test"); + return new String(); + } + + private static String removeMultipleSpaces(String input) { + return input.replaceAll("\\s+", " "); + } + + public static void sendPrivateMessageToSelf(String message) { + if (Minecraft.getMinecraft().thePlayer != null) { + Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + message)); + } + } + + public static void sendPrivateMessageToSelfText(net.minecraft.util.IChatComponent message) { + if (Minecraft.getMinecraft().thePlayer != null) { + Minecraft.getMinecraft().thePlayer.addChatMessage(message); + } + } + + public static void sendCommand(String s) { + getConfig().sender.addSendTask(s); + } + + public void sendNotification(String title, String text) { + Thread soundThread = new Thread(() -> { + try { + InputStream inputStream = getClass().getResourceAsStream("/sounds/mixkit-sci-fi-confirmation-914.wav"); + AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(inputStream); + Clip clip = AudioSystem.getClip(); + clip.open(audioInputStream); + clip.start(); + Thread.sleep(clip.getMicrosecondLength() / 1000); + clip.close(); + audioInputStream.close(); + } catch (Exception e) { + e.printStackTrace(); + } + }); + + soundThread.start(); + + List<String> argsList = new ArrayList<>(); + argsList.add("--title"); + argsList.add(title); + argsList.add("--passivepopup"); + argsList.add(text); + argsList.add("5"); + + try { + ProcessBuilder processBuilder = new ProcessBuilder(); + processBuilder.command("kdialog"); + processBuilder.command().addAll(argsList); + + Process process = processBuilder.start(); + process.waitFor(); + } catch (IOException | InterruptedException e) { + e.printStackTrace(); + } + } + + public static net.minecraft.util.IChatComponent createClientSideTellraw(String tellrawInput) { + net.minecraft.util.IChatComponent formattedMessage = null; + try { + formattedMessage = net.minecraft.util.IChatComponent.Serializer.jsonToComponent(tellrawInput); + } catch (Exception e) { + e.printStackTrace(); + System.out.println("Invalid Json: \n" + tellrawInput); + } + return formattedMessage; + } + + public static void followMenu(String menu, String message) { + // Check the "menu" argument and execute the appropriate logic + String command; + String username = getPlayerNameFromMessage(message); + if (message.contains(":")) { + message = message.split(":", 2)[1].trim(); + if (menu.equalsIgnoreCase("pcm")) { + command = "[\"\",{\"text\":\"@@username\",\"color\":\"gray\",\"clickEvent\":{\"action\":\"suggest_command\",\"value\":\"/pc @username\"}},{\"text\":\" [Copy_Message]\",\"color\":\"blue\",\"clickEvent\":{\"action\":\"copy_to_clipboard\",\"value\":\"Copy-Text-Message\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[\"Copy the message the Player send without their name into the clipboard.\"]}},{\"text\":\" [Kick_Player]\",\"color\":\"dark_red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/p kick @username\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[\"Kick the player from the party\"]}},{\"text\":\" [Promote_Player]\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/p promote @username\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[\"Promote the player\"]}},{\"text\":\" [Demote_Player]\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/p demote @username\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[\"Demote the player\"]}},{\"text\":\" [Transfer_to_Player]\",\"color\":\"gold\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/p transfer @username\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[\"Transfer the Party to the player\"]}},{\"text\":\" [Mute/Unmute_Party]\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/p mute @username\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[\"Mutes the ENTIRE party but party moderators or Hypixel Staff can still type.\"]}}]"; + //{"jformat":8,"jobject":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"gray","insertion":"","click_event_type":"suggest_command","click_event_value":"/pc @username","hover_event_type":"none","hover_event_value":"","hover_event_object":{},"hover_event_children":[],"text":"@username"},{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"blue","insertion":"","click_event_type":"copy_to_clipboard","click_event_value":"Copy-Text-Message","hover_event_type":"show_text","hover_event_value":"","hover_event_object":{},"hover_event_children":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"none","insertion":"","click_event_type":"none","click_event_value":"","hover_event_type":"none","hover_event_value":"","hover_event_object":{},"hover_event_children":[],"text":"Copy the message the Player send without their name into the clipboard."}],"text":" [Copy_Message]"},{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"dark_red","insertion":"","click_event_type":"run_command","click_event_value":"/p kick @username","hover_event_type":"show_text","hover_event_value":"","hover_event_object":{},"hover_event_children":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"none","insertion":"","click_event_type":"none","click_event_value":"","hover_event_type":"none","hover_event_value":"","hover_event_object":{},"hover_event_children":[],"text":"Kick the player from the party"}],"text":" [Kick_Player]"},{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"dark_green","insertion":"","click_event_type":"run_command","click_event_value":"/p promote @username","hover_event_type":"show_text","hover_event_value":"","hover_event_object":{},"hover_event_children":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"none","insertion":"","click_event_type":"none","click_event_value":"","hover_event_type":"none","hover_event_value":"","hover_event_object":{},"hover_event_children":[],"text":"Promote the player"}],"text":" [Promote_Player]"},{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"red","insertion":"","click_event_type":"run_command","click_event_value":"/p demote @username","hover_event_type":"show_text","hover_event_value":"","hover_event_object":{},"hover_event_children":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"none","insertion":"","click_event_type":"none","click_event_value":"","hover_event_type":"none","hover_event_value":"","hover_event_object":{},"hover_event_children":[],"text":"Demote the player"}],"text":" [Demote_Player]"},{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"gold","insertion":"","click_event_type":"run_command","click_event_value":"/p transfer @username","hover_event_type":"show_text","hover_event_value":"","hover_event_object":{},"hover_event_children":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"none","insertion":"","click_event_type":"none","click_event_value":"","hover_event_type":"none","hover_event_value":"","hover_event_object":{},"hover_event_children":[],"text":"Transfer the Party to the player"}],"text":" [Transfer_to_Player]"},{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"dark_aqua","insertion":"","click_event_type":"run_command","click_event_value":"/p mute |
