Skip to content

Instantly share code, notes, and snippets.

View LOOHP's full-sized avatar
🇭🇰
Stand with Hong Kong

LOOHP

🇭🇰
Stand with Hong Kong
View GitHub Profile
package com.loohp.animatedirongolemspawn;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.Particle;
import org.bukkit.Sound;
import org.bukkit.SoundCategory;
import org.bukkit.World;
@LOOHP
LOOHP / config.yml
Last active October 30, 2022 01:48
Default config of EditableSigns (https://www.spigotmc.org/resources/93850/)
HandleLegacyColorCodes: true
Messages:
Reload: "&eEditable signs has been reloaded!"
NoPermission: "&cYou do not have permission to use that command!"
@LOOHP
LOOHP / VentureChatWorkaround.java
Created June 17, 2022 09:21
VentureChat 1.19 workaround
package com.loohp.venturechatworkaround;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.events.ListenerPriority;
import com.comphenix.protocol.events.PacketAdapter;
import com.comphenix.protocol.events.PacketAdapter.AdapterParameteters;
import com.comphenix.protocol.events.PacketContainer;
import com.comphenix.protocol.events.PacketEvent;
import com.google.gson.Gson;
@LOOHP
LOOHP / InteractiveChatHexnicksBridge.java
Last active February 2, 2023 18:20
InteractiveChatHexnicksBridge
package com.loohp.interactivechathexnicksbridge;
import com.loohp.interactivechat.api.InteractiveChatAPI;
import dev.majek.hexnicks.HexNicks;
import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer;
import org.bukkit.ChatColor;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
import java.util.ArrayList;
package com.loohp.editablesigns;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
@LOOHP
LOOHP / FallingSnow.java
Last active August 19, 2023 12:49
Source Code for FallingSnow (https://www.spigotmc.org/resources/92367/)
package com.loohp.fallingsnow;
import net.md_5.bungee.api.ChatColor;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.block.data.BlockData;