Code:java Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(PlayerTools.getInstance(), new Runnable(bat, bat1, bat2, bat3, bat4, bat5, bat6, bat7, bat8, bat9, bat10, bat11) { public void run() { this.val$bat.remove(); this.val$bat1.remove(); this.val$bat2.remove(); this.val$bat3.remove(); this.val$bat4.remove(); this.val$bat5.remove(); this.val$bat6.remove(); this.val$bat7.remove(); this.val$bat8.remove(); this.val$bat9.remove(); this.val$bat10.remove(); this.val$bat11.remove(); } } , 20L); Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(PlayerTools.getInstance(), new Runnable(player) { public void run() { BatBlasterActivate.this.NoBat.remove(this.val$player); this.val$player.sendMessage(BatBlasterActivate.this.prefix + ChatColor.GOLD + "You Can Now Use The Bat Blaster"); } It says: The constructor Object(Bat, Bat, Bat, Bat, Bat, Bat, Bat, Bat, Bat, Bat, Bat, Bat) is undefined
Ula492 Kinda hard to explain, but I believe the best way to say is that: http://docs.oracle.com/javase/7/docs/api/java/lang/Runnable.html This doesn't have the construction of Runnable(Bat, Bat, Bat, Bat, Bat, Bat, Bat, Bat, Bat, Bat, Bat, Bat) anywhere in that documentation. Make your bat objects final (final Bat bat1 = [WHATEVER]) and use the bat objects there. (bat1.remove()).
dosent work or help Dosent help me :/ I tried putting final and it game me another error code EDIT by Moderator: merged posts, please use the edit button instead of double posting.