daily pastebin goal
14%
SHARE
TWEET

Untitled

NLRicardoFTW Feb 14th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package me.Matarandar.WaterFlow;
  2.  
  3. import net.minecraft.server.v1_11_R1.EntityPolarBear;
  4.  
  5. import static org.bukkit.ChatColor.*;
  6.  
  7. import org.bukkit.Bukkit;
  8. import org.bukkit.ChatColor;
  9. import org.bukkit.Material;
  10. import org.bukkit.block.Block;
  11. import org.bukkit.block.Sign;
  12. import org.bukkit.command.Command;
  13. import org.bukkit.command.CommandSender;
  14. import org.bukkit.enchantments.Enchantment;
  15. import org.bukkit.entity.Item;
  16. import org.bukkit.entity.Player;
  17. import org.bukkit.entity.PolarBear;
  18. import org.bukkit.event.EventHandler;
  19. import org.bukkit.event.Listener;
  20. import org.bukkit.event.block.*;
  21. import org.bukkit.event.entity.*;
  22. import org.bukkit.event.player.PlayerInteractEvent;
  23. import org.bukkit.event.player.PlayerJoinEvent;
  24. import org.bukkit.event.player.PlayerRespawnEvent;
  25. import org.bukkit.inventory.ItemStack;
  26. import org.bukkit.inventory.meta.ItemMeta;
  27. import org.bukkit.plugin.Plugin;
  28. import org.bukkit.plugin.java.JavaPlugin;
  29. import org.bukkit.scheduler.BukkitRunnable;
  30. import org.bukkit.scoreboard.Scoreboard;
  31. import org.bukkit.scoreboard.ScoreboardManager;
  32. import org.bukkit.scoreboard.Team;
  33. import org.bukkit.util.Vector;
  34.  
  35. import java.io.File;
  36. import java.util.HashMap;
  37. import java.util.Random;
  38.  
  39. /**
  40.  * Created by Ricardo on 27-1-2018.
  41.  */
  42. public class Main extends JavaPlugin implements Listener {
  43.  
  44.  
  45.     private Random r;
  46.     private HashMap<Player, Integer> cooldownTime;
  47.     private HashMap<Player, BukkitRunnable> cooldownTask;
  48.  
  49.     @Override
  50.     public void onEnable() {
  51.  
  52.  
  53.         ScoreboardManager manager = Bukkit.getScoreboardManager();
  54.         Scoreboard board = manager.getNewScoreboard();
  55.         Team teamrood = board.registerNewTeam("rood");
  56.         Team teamblauw = board.registerNewTeam("blauw");
  57.         teamblauw.setPrefix(ChatColor.BLUE + " ");
  58.         teamrood.setPrefix(ChatColor.RED + " ");
  59.  
  60.         cooldownTime = new HashMap<Player, Integer>();
  61.         cooldownTask = new HashMap<Player, BukkitRunnable>();
  62.         r = new Random();
  63.  
  64.         getServer().getPluginManager().registerEvents(this, this);
  65.         getCommand("Wildhunt").setExecutor(new Wildhunt(this));
  66.         getCommand("Health").setExecutor(new Health(this));
  67.         getCommand("Kijk").setExecutor(new Spectator(this));
  68.         getCommand("Regels").setExecutor(new Regels(this));
  69.         getCommand("Versie").setExecutor(new Versie(this));
  70.         getCommand("Evoker").setExecutor(new Evoker(this));
  71.         getCommand("Foodlevel").setExecutor(new Foodlevel(this));
  72.         getCommand("Teamrood").setExecutor(new Teams(this));
  73.         getCommand("Teamblauw").setExecutor(new Teams(this));
  74. }
  75.  
  76.  
  77. /// De rest van de main
RAW Paste Data
Top