Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CallBackTask

Comments in 'Plugin Development' started by ImagicalGamer, Apr 1, 2016.

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

    ImagicalGamer Active Member

    Joined:
    Feb 25, 2016
    Posts:
    141
    Minecraft User:
    ImagicalGamer
    I get this error:
    Code:
    [04:01:33] critical> ClassNotFoundException: "Class pocketmine\scheduler\CallbackTask not found" (EXCEPTION) in "/src/spl/BaseClassLoader" at line 144
    The class is clearly stated, I only get this issue on PHP7 not PHP5. Any ideas why this error comes up?
    This is the only code that uses a CallBackTask:
    Code:
    $this->getServer()->getScheduler()->scheduleRepeatingTask(new CallbackTask([$this,"game1"]),20); 
    $this is the plug btw.
  2. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    CallbackTask is deprecated as of Alpha 1.5, and its use is discouraged.
  3. WitherTube
    Offline

    WitherTube New Member

    Joined:
    Dec 21, 2015
    Posts:
    44
    Minecraft User:
    Wither_Tube
    I'm not very good but it seems that this Task removed from the API . I hope i helped you man :D
  4. ImagicalGamer
    Offline

    ImagicalGamer Active Member

    Joined:
    Feb 25, 2016
    Posts:
    141
    Minecraft User:
    ImagicalGamer
    xD Thanks, never used it b4 so I didn't know/
Thread Status:
Not open for further replies.

Share This Page

Advertisement