Problem/Bug Countdown

Discussion in 'Bukkit Help' started by Smillie, Oct 2, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Smillie

    Greetings,

    I'm Currently Working on a MMORPG in Minecraft.
    I'm having some problems with this line of code.

    Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable() {

    It Says:

    The method scheduleSyncDelayedTask(Plugin, Runnable, long) in the type BukkitScheduler is not applicable for the arguments (Countdown, new Runnable(){}, long) Countdown.java /KingSlime/src/KingSlime line 14 Java Problem
     
  2. Offline

    EvilWitchdoctor

    Does the class 'Countdown' extend the bukkit class 'Plugin'?
    It looks like the 'this' value in the scheduler represents a class that is not a 'Plugin' class, which is the argument type that the scheduleSyncDelayedTask() is looking for.

    Tell me if that helps anything :)
     
  3. Offline

    Smillie

Thread Status:
Not open for further replies.

Share This Page