Skip to content

Instantly share code, notes, and snippets.

View Jikoo's full-sized avatar
🚚
Always Be Shipping

Adam Jikoo

🚚
Always Be Shipping
View GitHub Profile
@Jikoo
Jikoo / PRTreeSettingsBenchmark.java
Created June 15, 2024 15:43
GP PRTree Benchmarking
import org.khelekore.prtree.PRTree;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.Level;
import org.openjdk.jmh.annotations.Measurement;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.Param;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.results.RunResult;
@Jikoo
Jikoo / BlockBedCropDupe.java
Last active November 23, 2023 09:27
Block bed placement duplicating crops
package com.github.jikoo.blockbedcropdupe;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.block.BlockState;
@Jikoo
Jikoo / TestPlugin.java
Created May 21, 2019 17:41
LootTableTest plugin
package com.github.jikoo;
import java.util.concurrent.ThreadLocalRandom;
import org.bukkit.attribute.Attribute;
import org.bukkit.attribute.AttributeInstance;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
@Jikoo
Jikoo / en_US.lang
Created June 6, 2016 04:56
Resource pack lang file for enchantment display. Includes 1-50, then every 5 up to 1000.
enchantment.level.1=I
enchantment.level.2=II
enchantment.level.3=III
enchantment.level.4=IV
enchantment.level.5=V
enchantment.level.6=VI
enchantment.level.7=VII
enchantment.level.8=VIII
enchantment.level.9=IX
enchantment.level.10=X
@Jikoo
Jikoo / BlockUpdateManager.java
Created January 15, 2016 16:06
Force queued block updates
package com.github.jikoo.blockupdate;
import java.util.Queue;
import com.github.jikoo.util.HashQueue;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.scheduler.BukkitRunnable;
@Jikoo
Jikoo / InvisibilityManager.java
Created January 14, 2016 17:15
Manage name tag visibility for scoreboards
package com.github.jikoo;
import java.util.HashMap;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
@Jikoo
Jikoo / ItemNames.java
Created January 13, 2016 17:09
Load item names from a file stored inside your plugin.
package com.github.jikoo.itemnames;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map.Entry;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.tuple.ImmutablePair;
@Jikoo
Jikoo / Experience.java
Last active December 11, 2024 17:09
A utility for managing experience with Bukkit.
package com.github.jikoo.planarwrappers.util;
import org.bukkit.entity.Player;
/**
* A utility for managing player experience.
*/
public final class Experience {
/**
@Jikoo
Jikoo / NoBookColor.java
Created July 30, 2015 22:57
No book color Bukkit plugin
package com.github.jikoo.nobookcolor;
import java.util.ArrayList;
import java.util.Iterator;
import org.bukkit.ChatColor;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerEditBookEvent;
import org.bukkit.inventory.meta.BookMeta;
@Jikoo
Jikoo / FastTNT.java
Created April 1, 2015 01:39
FastTNT-NoRedSand
package com.github.jikoo.fasttnt;
import java.util.HashMap;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;