SHARE
TWEET

Untitled

a guest Nov 9th, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package de.pacsnetwork.snow.main;
  2.  
  3. import de.pacsnetwork.snow.commands.SnowCommand;
  4. import de.pacsnetwork.snow.manager.ConfigFileManager;
  5. import de.pacsnetwork.snow.manager.MessageFileManager;
  6. import de.pacsnetwork.snow.manager.SnowLocationFileManager;
  7. import de.pacsnetwork.snow.snowManager.Particles;
  8. import org.bukkit.plugin.java.JavaPlugin;
  9. import org.bukkit.scheduler.BukkitRunnable;
  10.  
  11. public class Main extends JavaPlugin {
  12.     private static Main plugin;
  13.  
  14.     //Settings
  15.         //Snow
  16.             //Particles
  17.                 public static int snowAmount;
  18.                 public static float snowSpeed;
  19.                 public static int snowVertical;
  20.                 public static int snowHorizontal;
  21.             //WholeWorldParticles
  22.                 public static int wholeWorldSnowAmount;
  23.                 public static float wholeWorldSnowSpeed;
  24.                 public static int wholeWorldSnowVertical;
  25.                 public static int wholeWorldSnowHorizontal;
  26.         //Prefixes
  27.             //GamePrefix
  28.                 public static String prefix;
  29.             //ConsolePrefix
  30.                 public static String consolePrefix;
  31.         //Messages
  32.             //NoPerms
  33.                 public static String noPerms;
  34.             //AddLocation
  35.                 public static String addLocationMSG;
  36.             //add world
  37.                 public static String addWorldMSG;
  38.             //world already exists
  39.                 public static String worldAlreadyExistsMSG;
  40.             //spawn doesn't exist
  41.                 public static String spawnDoesNotExistMSG;
  42.             //world doesn't exist
  43.                 public static String worldDoesNotExistMSG;
  44.             //remove spawn
  45.                 public static String removeSpawnMSG;
  46.             //remove world
  47.                 public static String removeWorldMSG;
  48.  
  49.     //Files
  50.         //messages.yml
  51.             public static MessageFileManager messageFileManager;
  52.         //config.yml
  53.             public static ConfigFileManager configFileManager;
  54.         //snowLocations.yml
  55.             public static SnowLocationFileManager snowLocationFileManager;
  56.  
  57.     @Override
  58.     public void onEnable() {
  59.         plugin = this;
  60.  
  61.         new BukkitRunnable() {
  62.  
  63.             @Override
  64.             public void run() {
  65.                 //Files
  66.                 //messages.yml
  67.                 messageFileManager = new MessageFileManager();
  68.                 messageFileManager.register();
  69.                 messageFileManager.saveMessageFile();
  70.                 //config.yml
  71.                 configFileManager = new ConfigFileManager();
  72.                 configFileManager.register();
  73.                 configFileManager.saveConfigFile();
  74.                 //snowLocations.yml
  75.                 snowLocationFileManager = new SnowLocationFileManager();
  76.                 snowLocationFileManager.saveSnowLocationFile();
  77.  
  78.                 //Enable MSG
  79.                 System.out.println(consolePrefix + "Author: KugelMane");
  80.  
  81.                 //start particles
  82.                 Particles.startParticles();
  83.  
  84.                 //commands
  85.                 getCommand("snow").setExecutor(new SnowCommand());
  86.             }
  87.         }.runTaskLater(this, 1);
  88.     }
  89.  
  90.     public static Main getPlugin() {
  91.         return plugin;
  92.     }
  93. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top