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 com.gmail.nossr50.database.DatabaseManager; | |
import com.gmail.nossr50.database.DatabaseManagerFactory; | |
import com.gmail.nossr50.datatypes.database.PlayerStat; | |
import com.gmail.nossr50.datatypes.skills.SkillType; | |
import java.util.ArrayList; | |
import java.util.Comparator; | |
import java.util.List; | |
import java.util.Optional; |
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.Map; | |
import java.util.WeakHashMap; | |
import java.util.concurrent.TimeUnit; | |
public class Cooldown<T> { | |
private Map<T, Long> map; | |
public Cooldown() { | |
this.map = new WeakHashMap<>(); |
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.TreeMap; | |
public class RomanNumber { | |
private final static TreeMap<Integer, String> map = new TreeMap<>(); | |
static { | |
map.put(1000, "M"); | |
map.put(900, "CM"); | |
map.put(500, "D"); |
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 org.bukkit.Material; | |
import org.bukkit.inventory.ItemStack; | |
import org.bukkit.inventory.meta.ItemMeta; | |
import java.util.Arrays; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.function.BiConsumer; | |
import java.util.function.BiPredicate; | |
import java.util.function.Supplier; |
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 org.bukkit.scheduler.BukkitRunnable; | |
import java.util.function.IntConsumer; | |
public class CountdownTask extends BukkitRunnable { | |
private int counter; | |
private final IntConsumer countdownAction; | |
private final Runnable completionAction; |
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 com.redefantasy.core.spigot.misc.utils; | |
import lombok.*; | |
import net.minecraft.server.v1_8_R3.AxisAlignedBB; | |
import org.bukkit.Bukkit; | |
import org.bukkit.Location; | |
import org.bukkit.Material; | |
import org.bukkit.World; | |
import org.bukkit.block.Block; | |
import org.bukkit.craftbukkit.v1_8_R3.CraftWorld; |
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 com.drazyh.mines; | |
import com.drazyh.common.spigot.SpigotConstants; | |
import com.drazyh.common.spigot.location.SerializedLocation; | |
import com.drazyh.common.spigot.misc.utils.ProbabilityCollection; | |
import com.drazyh.common.spigot.misc.utils.WorldCuboid; | |
import com.drazyh.mines.api.MineOre; | |
import lombok.EqualsAndHashCode; | |
import lombok.Getter; | |
import lombok.RequiredArgsConstructor; |