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

Solved TimeRanks

Discussion in 'Development' started by QuiverlyRivalry, Sep 24, 2017.

  1. QuiverlyRivalry

    QuiverlyRivalry Zombie Pigman

    Messages:
    491
    GitHub:
    quiverlyrivalry
    Hi,
    On my GitHub organisation me and my friend forked the plugin TimeRanks and updated its API, but when I use it on my server I get this error.
    PocketMine-MP Crash Dump Sun Sep 24 18:01:56 UTC 2017

    Error: Declaration of TimeRanks\Main::eek:nCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, $label, array $args) must be compatible with pocketmine\plugin\PluginBase::eek:nCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, string $label, array $args): bool
    File: TimeRanks_v1.phar/src/TimeRanks/Main
    Line: 13
    Type: E_COMPILE_ERROR

    THIS CRASH WAS CAUSED BY A PLUGIN

    Code:
    [4]
    [5] use pocketmine\command\Command;
    [6] use pocketmine\command\CommandSender;
    [7] use pocketmine\Player;
    [8] use pocketmine\plugin\Plugin;
    [9] use pocketmine\plugin\PluginBase;
    [10] use pocketmine\utils\Config;
    [11] use TimeRanks\events\PlayerRankUpEvent;
    [12]
    [13] class Main extends PluginBase{
    [14]
    [15] public $ranks;
    [16] /**@var \_64FF00\PurePerms\PurePerms*/
    [17] public $purePerms;
    [18] /**@var Config::pROPERTIES*/
    [19] public $data;
    [20] /**@var TimeRanksCommand*/
    [21] public $command;
    [22] public $default;
    [23]

    Backtrace:

    PocketMine-MP version: 1.7dev #65 [Protocol 137; API 3.0.0-ALPHA8]
    Git commit: 0000000000000000000000000000000000000000
    uname -a: Linux 315b05e23b19 4.4.30-mod-std-ipv6-64 #9 SMP Tue Nov 1 17:58:26 CET 2016 x86_64
    PHP Version: 7.2.0RC2
    Zend version: 3.2.0-dev
    OS : Linux, linux
    From my understanding, and @NickTehUnicorns teachings, I will have to keep a bool at the end of lline 13? Am I correct, if not please explain what I have to do.
     
  2. NickTehUnicorn

    NickTehUnicorn Zombie

    Messages:
    200
    GitHub:
    unickorn
    jasonwynn10 and HimbeersaftLP like this.
  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.