Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DropParty implements CommandExecutor {
- public int starttime = 15;
- public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args)
- {
- if (cmd.getName().equalsIgnoreCase("dp"))
- {
- Player player = (Player)sender;
- if (args.length == 1)
- {
- if (args[0].equalsIgnoreCase("start")) {
- if (player.hasPermission("dp.start"))
- {
- Bukkit.getServer().broadcastMessage(ChatColor.RED + "" + ChatColor.BOLD + "DROP PARTY:" + ChatColor.YELLOW + " Drop party starting in " + ChatColor.RED + starttime + ChatColor.YELLOW + " seconds!");
- Main.plugin.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement