Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PixelParkourTimer extends JavaPlugin {
- @Override
- public void onEnable(){
- }
- int count = 0;
- int every = 20;
- public boolean onCommand(CommandSender s, Command cmd, String label, String[] args){
- if (cmd.getName().equalsIgnoreCase("AB")) {
- Player player = (Player) s;
- Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
- public void run() {
- ActionBarAPI.sendActionBar(player, ChatColor.AQUA + "Time » " + ChatColor.GREEN + count);
- count = count + 1;
- }
- }, 0, every);
- }
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement