@@ -0,0 +1,2199 @@
+package info.TheMFN.PotionPermisions;%0A%0Aimport org.bukkit.ChatColor;%0Aimport org.bukkit.command.Command;%0Aimport org.bukkit.command.CommandSender;%0Aimport org.bukkit.entity.Player;%0Aimport org.bukkit.plugin.java.JavaPlugin;%0Aimport org.bukkit.potion.PotionEffect;%0Aimport org.bukkit.potion.PotionEffectType;%0A%0Apublic class PotionPermmisions extends JavaPlugin%7B%0A%09%0A%09public static PotionPermmisions instance;%0A%09%0A%09@Override%0A%09public void onEnable()%7B%0A%09%09instance = this;%0A%09%09getLogger().info(%22Potion Permmisions Has Started%22);%0A%09%09getServer().getPluginManager().registerEvents(new PlayerListener(), getInstance());%0A%09%7D%0A%0A%09%0A%09@Override%0A%09public void onDisable()%7B%0A%09%09instance = null;%0A%09%09getLogger().info(%22Potion Permmisions Has Stopped%22);%0A%09%09%0A%09%7D%0A%09%0A%09public static PotionPermmisions getInstance()%7B%0A%09%09return instance;%0A%09%7D%0A%09%0A%09public boolean onCommand(CommandSender sender, Command cmd, String label, String%5B%5D args)%7B%0A%09%09%0A%09%09int cooldownTime = 300;%0A%09%09final Player player = (Player) sender;%0A%09%09if(cmd.getName().equalsIgnoreCase(%22aspower%22))%7B%0A%09%09%09if (sender instanceof Player)%7B%0A%09%09%09%09if (!player.hasPermission(Perms.ASS.getPerm()))%0A%09%09%09%09%09%09player.sendMessage(ChatColor.DARK_RED + %22You do not have permmision to use this powerup!%22);%0A%09%09%09%09if (player.hasPermission(Perms.ASS.getPerm()))%7B%0A%09%09%09%09%09%0A%09%09%09%09%09if(PlayerListener.cooldown.containsKey(player.getUniqueId())) %7B%0A%09%09%09%09%09%09long secondsLeft = ((PlayerListener.cooldown.get(player.getUniqueId())/1000)+cooldownTime) - (System.currentTimeMillis()/1000);%0A%09%09%09%09%09%09if(secondsLeft%3E0)%7B%0A%09%09%09%09%09%09%09player.sendMessage(ChatColor.DARK_RED +%22Please wait for %22 + secondsLeft +%22 seconds as there is a 5 minute cooldown on this powerup!%22);%0A%09%09%09%09%09%09%09return true;%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%7D%0A%09%09%09%09%09PlayerListener.cooldown.put(player.getUniqueId(), System.currentTimeMillis());%0A%09%09%09%09%09player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 600, 9));%0A%09%09%09%09%09player.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, 600, 9));%0A%09%09%09%09%09player.sendMessage(ChatColor.GOLD + %22PowerUp Effects given! Be quick, they only last 30 seconds and have a 5 minute cooldown!%22);%0A%09%09%09%09%09player.sendMessage(ChatColor.GRAY + %22Psssst. Remember! Take off your armour and don't hold an item so you can't be seen!%22);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return false;%0A%09%7D%0A%7D%0A%0A%0A%0A

Create PotionPermmisions.java