This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package me.bobacadodl.dataapi.items; | |
| import java.io.ByteArrayInputStream; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.DataInputStream; | |
| import java.io.DataOutputStream; | |
| import java.lang.reflect.InvocationTargetException; | |
| import java.math.BigInteger; | |
| import me.bobacadodl.dataapi.utils.ReflectionUtils; | |
| import org.bukkit.inventory.ItemStack; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package your-package; | |
| import org.bukkit.ChatColor; | |
| import org.bukkit.entity.Player; | |
| import java.awt.*; | |
| import java.awt.image.BufferedImage; | |
| import java.util.HashMap; | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package YOUR_PACKAGE_HERE; | |
| import org.apache.commons.lang.Validate; | |
| import org.bukkit.Bukkit; | |
| import org.bukkit.command.*; | |
| import org.bukkit.entity.Player; | |
| import org.bukkit.help.GenericCommandHelpTopic; | |
| import org.bukkit.help.HelpTopic; | |
| import org.bukkit.help.HelpTopicComparator; | |
| import org.bukkit.help.IndexHelpTopic; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ProtocolLibrary.getProtocolManager().addPacketListener( | |
| new PacketAdapter(this, ConnectionSide.SERVER_SIDE, | |
| Packets.Server.KICK_DISCONNECT) { | |
| @Override | |
| public void onPacketSending(PacketEvent event) { | |
| StructureModifier<String> packetStr = event.getPacket().getSpecificModifier(String.class); | |
| String p = (String)packetStr.read(0); | |
| String prep = p.substring(0, 3); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.UnsupportedEncodingException; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.Collections; | |
| import java.util.HashMap; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| import java.util.Map; | |
| import java.util.Map.Entry; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Arrays; | |
| import java.util.Comparator; | |
| import java.util.HashMap; | |
| import org.apache.commons.lang.StringUtils; | |
| public class FuzzySearch { | |
| private static HashMap<String,String[]> searchers = new HashMap<String,String[]>(); | |
NewerOlder