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

Help

Discussion in 'Help' started by Defications2po, Jul 22, 2017.

  1. Defications2po

    Defications2po Witch

    Messages:
    51
    Pocketmine isnt working
    for me i dont even think its a plugin.
    Heres the crashdum[
    PHP:
    PocketMine-MP Crash Dump Sat Jul 22 08:28:26 ACT 2017

    Error
    : Return value of pocketmine\plugin\PluginDescription::getVersion() must be of the type stringfloat returned
    File
    src/pocketmine/plugin/PluginDescription
    Line
    275
    Type
    notice

    Code
    :
    [
    266]     */
    [
    267]     public function getSoftDepend() : array{
    [
    268]         return $this->softDepend;
    [
    269]     }
    [
    270
    [
    271]     /**
    [272]     * @return string
    [273]     */
    [274]     public function getVersion() : string{
    [
    275]         return $this->version;
    [
    276]     }
    [
    277
    [
    278]     /**
    [279]     * @return string
    [280]     */
    [281]     public function getWebsite() : string{
    [
    282]         return $this->website;
    [
    283]     }
    [
    284] }
    [
    285

    Backtrace:
    #0 src/pocketmine/scheduler/SendUsageTask(92): pocketmine\plugin\PluginDescription->getVersion()
    #1 src/pocketmine/Server(2351): pocketmine\scheduler\SendUsageTask->__construct(pocketmine\Server object, integer 1, array Array())
    #2 src/pocketmine/Server(2076): pocketmine\Server->sendUsage(integer 1)
    #3 src/pocketmine/Server(1680): pocketmine\Server->start()
    #4 src/pocketmine/PocketMine(511): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar://C:/Users/Ben/Desktop/PocketMine-MP/PocketMine-MP.phar/, string C:\Users\Ben\Desktop\PocketMine-MP\, string C:\Users\Ben\Desktop\PocketMine-MP\plugins\)
    #5 C:/Users/Ben/Desktop/PocketMine-MP/PocketMine-MP.phar(1): require_once(string phar://C:/Users/Ben/Desktop/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

    PocketMine-MP version1.6.2dev #0 [Protocol 113; API 3.0.0-ALPHA7]
    Git commit0000000000000000000000000000000000000000
    uname 
    -aWindows NT DESKTOP-KTJJ760 10.0 build 14393 (Windows 10AMD64
    PHP Version
    7.0.3
    Zend version
    3.0.0
    OS 
    WINNTwin

    Loaded plugins
    :
    DevTools 1.12.1 by PocketMine Team for API(s3.0.0-ALPHA7
    [PHP/]
     
  2. XdmingXD

    XdmingXD Baby Zombie

    Messages:
    158
    GitHub:
    xdmingxd
    Actually, you do not need to fix it for string
    The error told you $this->version return some value that is not only string or only number. i.e. 1.0.5
    PHP:
    public function getVersion() {
           return 
    $this->version;
        }
    edit:
    Just leave me alone... I thought this is development forum:facepalm:
     
    Last edited: Jul 23, 2017
  3. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    I think this was fixed not long ago - you should first try to reproduce with a more recent official build. Are you trying to load any other plugin except DevTools? If so, does that plugin have a version with only one decimal point (x.y) or two (x.y.z)? As a workaround, try turning off auto-report and anonymous-statistics in pocketmine.yml.
     
    Last edited: Jul 23, 2017
  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.