Skip to content

Instantly share code, notes, and snippets.

Avatar
🚚
Always Be Shipping

Adam Jikoo

🚚
Always Be Shipping
View GitHub Profile
@Jikoo
Jikoo / TestPlugin.java
Created May 21, 2019
LootTableTest plugin
View TestPlugin.java
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 Jun 6, 2016
Resource pack lang file for enchantment display. Includes 1-50, then every 5 up to 1000.
View en_US.lang
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 Jan 15, 2016
Force queued block updates
View BlockUpdateManager.java
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 Jan 14, 2016
Manage name tag visibility for scoreboards
View InvisibilityManager.java
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 Jan 13, 2016
Load item names from a file stored inside your plugin.
View ItemNames.java
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 Dec 5, 2021
A utility for managing experience with Bukkit.
View Experience.java
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 Jul 30, 2015
No book color Bukkit plugin
View NoBookColor.java
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 Apr 1, 2015
FastTNT-NoRedSand
View FastTNT.java
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;
@Jikoo
Jikoo / PortalListener.java
Created Jan 8, 2015
Modified version of DirectPortals
View PortalListener.java
package com.github.jikoo.portals;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.TravelAgent;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
View FastTNT.java
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;