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.lang.reflect.Field; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import org.apache.commons.lang.Validate; | |
| import org.bukkit.Bukkit; | |
| import org.bukkit.Material; | |
| import org.bukkit.inventory.ItemStack; | |
| import org.bukkit.inventory.ShapedRecipe; |
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.lang.reflect.Field; | |
| import java.util.ArrayList; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| import org.apache.commons.lang.Validate; | |
| import org.bukkit.Bukkit; | |
| import org.bukkit.Material; | |
| import org.bukkit.inventory.ItemStack; | |
| import org.bukkit.inventory.ShapelessRecipe; |
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.BufferedReader; | |
| import java.io.File; | |
| import java.io.InputStream; | |
| import java.io.InputStreamReader; | |
| import java.nio.file.CopyOption; | |
| import java.nio.file.Files; | |
| import java.nio.file.StandardCopyOption; | |
| import java.time.LocalDate; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; |
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.*; | |
| import java.util.concurrent.TimeUnit; | |
| import java.util.function.Predicate; | |
| import java.util.function.Supplier; | |
| public class Cooldown { | |
| private static List<Cooldown> cooldowns = new ArrayList<>(); | |
| public static Map<UUID, Cooldown> perPlayerCooldown = new HashMap<>(); | |
| private long cooldown; |
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.Bukkit; | |
| import org.bukkit.entity.Player; | |
| import com.google.common.collect.Lists; | |
| import com.google.common.collect.Sets; | |
| import java.lang.annotation.Annotation; | |
| import java.lang.reflect.Constructor; | |
| import java.lang.reflect.Field; | |
| import java.lang.reflect.Method; |
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
| public static void main(String[] args) { | |
| File folder = new File(".", "modules"); | |
| List<Class<?>> clazzez = Lists.newArrayList(); | |
| for (File file : folder.listFiles()) | |
| try { | |
| Class<?> clazz = getModule(file); | |
| if (clazz != null) | |
| clazzez.add(clazz); | |
| } catch (Exception e) { |
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
| public class ShowTask extends BukkitRunnable { | |
| private ConfigurationSection config; | |
| private String lastTick; | |
| private int tick = 0; | |
| public ShowTask(String path, int startingTick) { | |
| tick = startingTick; | |
| config = SoarinCore.getMain().getConfigModule().getConfig(path).getData(); |
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.File; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.nio.file.CopyOption; | |
| import java.nio.file.Files; | |
| import java.util.List; | |
| import org.bukkit.configuration.Configuration; | |
| import org.bukkit.configuration.file.YamlConfiguration; |