Advertisement
Guest User

Untitled

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