Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.tylercreator.fallensurv;
- import org.apache.logging.log4j.core.config.plugins.Plugin;
- import org.bukkit.Bukkit;
- import org.bukkit.configuration.file.FileConfiguration;
- import org.bukkit.event.Listener;
- import org.bukkit.plugin.java.JavaPlugin;
- import me.tylercreator.fallensurv.spawnmodifier.Spawnmodifier;
- public class main extends JavaPlugin implements Listener{
- public static main plugin;
- public static final String RESET = "\u001B[0m"; //must be used after any colors or background color
- public static final String BLACK = "\u001B[30m"; //black text
- public static final String RED = "\u001B[31m"; //red text
- public static final String GREEN = "\u001B[32m"; //green text
- public static final String YELLOW = "\u001B[33m"; //yellow text
- public static final String PURPLE = "\u001B[35m"; //purple text
- public static final String CYAN = "\u001B[36m"; //cyan text
- public static final String WHITE = "\u001B[37m"; //white text
- public static final String BLACK_BACKGROUND = "\u001B[40m"; //black background
- public static final String RED_BACKGROUND = "\u001B[41m"; //red background
- public static final String YELLOW_BACKGROUND = "\u001B[43m"; //yellow background
- @Override
- public void onEnable() {
- FileConfiguration config = getConfig();
- Bukkit.getLogger().info(YELLOW_BACKGROUND + CYAN + "[FallenSurv]" + GREEN + "Plugin enabled correctly!" + RESET);
- config.addDefault("minimumTeleport", 250);
- config.addDefault("maximumTeleport", 2500); //should get from config
- config.options().copyDefaults(true);
- saveConfig();
- getServer().getPluginManager().registerEvents(new Spawnmodifier(), this);
- }
- @Override
- public void onDisable() {
- Bukkit.getLogger().info(YELLOW_BACKGROUND + CYAN + "[FallenSurv]" + GREEN + "Plugin disabled correctly!" + RESET);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement