Advertisement
Guest User

Untitled

a guest
Nov 19th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. public class DropParty implements CommandExecutor {
  2.  
  3. public static Main plugin;
  4.  
  5. public DropParty(Main instance)
  6. {
  7. plugin = instance;
  8. }
  9.  
  10. public int starttime = 15;
  11.  
  12. public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args)
  13. {
  14. if (cmd.getName().equalsIgnoreCase("dp"))
  15. {
  16. Player player = (Player)sender;
  17.  
  18. if (args.length == 1)
  19. {
  20. if (args[0].equalsIgnoreCase("start")) {
  21. if (player.hasPermission("dp.start"))
  22. {
  23. Bukkit.getServer().broadcastMessage(ChatColor.RED + "" + ChatColor.BOLD + "DROP PARTY:" + ChatColor.YELLOW + " Drop party starting in " + ChatColor.RED + starttime + ChatColor.YELLOW + " seconds!");
  24.  
  25. Main.plugin.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
  26. {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement