1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Plugin Fix for UHC

Discussion in 'Plugin Help' started by XxCodeRedxX, May 14, 2017.

  1. XxCodeRedxX

    XxCodeRedxX Witch

    Messages:
    68
    Everytime I add my plugin to my server it brings up this message. How can I fix it?
     

    Attached Files:

  2. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    You're not showing the right line of your code. However, that's not really important because the issue is you're using a class which was removed from pmmp.

    You'll have to stop using it in your code.
     
    Last edited: May 14, 2017
  3. XxCodeRedxX

    XxCodeRedxX Witch

    Messages:
    68
  4. XxCodeRedxX

    XxCodeRedxX Witch

    Messages:
    68
    If I send you the plugin, can you fix it?
     
  5. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    Well I could try to further help you. Post code which is related to the CallbackTask class here.
     
  6. XxCodeRedxX

    XxCodeRedxX Witch

    Messages:
    68
    class Main extends PluginBase implements Listener {
    public $pvp = 0;
    public $prefix = TextFormat:: DARK_GRAY . "[" . TextFormat::BLUE . "EonUHC" . TextFormat:: DARK_GRAY . "]" . TextFormat::GRAY;
    public $globalmute = false;
    public $spam = [];
    public function onEnable() {
    $this->getServer()->getPluginManager()->registerEvents($this, $this);
    $this->getServer()->getScheduler()->scheduleRepeatingTask(new CallbackTask(array($this, "Cord")), 20);
    $this->getServer()->getScheduler()->scheduleRepeatingTask(new CallbackTask(array($this, "sendHealth")), 10);
    $this->pvp = 0;
    }
     
  7. XxCodeRedxX

    XxCodeRedxX Witch

    Messages:
    68
    That's the CallbackTask code.
     
  8. DanielYTK

    DanielYTK Zombie

    Messages:
    227
    Are you currently using version 1.0.0+ of minecraft?
     
  9. XxCodeRedxX

    XxCodeRedxX Witch

    Messages:
    68
  10. XxCodeRedxX

    XxCodeRedxX Witch

    Messages:
    68
    Can anyone help me out?
     
  11. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    You can't use it anymore. Remove it from your code and use another task
     
  12. DanielYTK

    DanielYTK Zombie

    Messages:
    227
    CallbackTask don't has been removed in pmmp.
     
  13. XxCodeRedxX

    XxCodeRedxX Witch

    Messages:
    68
    What should I replace it with?
     
  14. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
  15. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    With another class which extends PluginTask and is a valid task itself.
     
  16. XxCodeRedxX

    XxCodeRedxX Witch

    Messages:
    68
  17. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
  18. XxCodeRedxX

    XxCodeRedxX Witch

    Messages:
    68
    What task would I use?
     
  19. DanielYTK

    DanielYTK Zombie

    Messages:
    227
    ScheduleRepeatingTask
     
  20. XxCodeRedxX

    XxCodeRedxX Witch

    Messages:
    68
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.