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

Management Updating your PocketMine Server :)

Comments in 'General Discussion' started by Legoboy0215, Oct 5, 2015.

?

Did this thread help you?

  1. Yes!

    33.3%
  2. No...

    44.4%
  3. I don't care...

    22.2%
  1. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Hello! I am @Legoboy0215 and I am going to show you how to update a server.
    First of all, I am writing this post because as some of you noticed, people ask questions like
    or
    So here I am trying to help.
    Basic knowledge first:
    • Know how to install a PM-MP server.
    • Knows how to start a server.
    • An '*' is a wildcard
    Not required knowledge:
    • Knowing how to code
    • Updating a server (Obviously, if you know how to you won't be reading this...)
    So let's start!
    1. Stop your server (If you haven't yet)
    2. Download the .phar of the build you want. (The links are on the chart :D)
    3. Rename the file to 'PocketMine-MP' or 'PocketMine-MP' depends on your system's setting.
    4. Replace the old file with the renamed file.
    5. Start the server :)
    6. Type
      Code:
       version 
      ON THE CONSOLE
    7. If the version is the PM-MP version you want to run, then you did it all right!

    Notice:
    The current version, PM 1.6 has some builds that uses PHP 7.
    Those builds REQUIRE PHP 7, so if you don't have PHP 7 download the none PHP 7 version.
    (It will say if it uses PHP 7 or not in the file name ;))
    Leave a like if I helped! :p
  2. tigerza118
    Offline

    tigerza118 Active Member

    Joined:
    Jan 31, 2015
    Posts:
    100
    Minecraft User:
    tigerza117
    PHP7 API 2.0
  3. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    We are not talking about API versions though.
  4. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    Maybe it's an off topic but is there anyone who ran PocketMine with PHP 7 on Linux?
  5. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    No-One :p
    SeifValkierks likes this.
  6. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    Yes. The problem is that some programmers of some PHP extensions used by PocketMine aren't updating them to PHP 7
    DunxandMinecraft likes this.
  7. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    I know, read the post i gave you.
  8. Vaivez66
    Offline

    Vaivez66 Notable Member Plugin Developer

    Joined:
    Jun 10, 2015
    Posts:
    402
    Plugins:
    2
    Useful for ppl who noob about pm version :D
  9. lucasvitegui
    Offline

    lucasvitegui Active Member

    Joined:
    Apr 18, 2015
    Posts:
    191
    Minecraft User:
    lucasviteguiBR
    Shoghi and other developers released some builds of Pm that uses PHP 7. but they say nothing how we can use it.. :/
    EvolSoft likes this.
  10. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    I was able to do this. I downloaded PHP7 from the jenkins server. The only extension that was missing was php-leveldb (only needed if you use LevelDB format worlds).

    I was using CentOS 7, 64 bit for my Linux.
  11. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    So where did you find Weakref extension for PHP 7?
  12. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    The PHP7 build in the Jenkins server had all the required extensions.
    Jazzwhistle likes this.
  13. Jazzwhistle
    Offline

    Jazzwhistle Notable Member

    Joined:
    Dec 27, 2014
    Posts:
    364
    Minecraft User:
    Awzaw
    Me too, had no problem running the PHP7 dev builds with the pocketmine PHP7 installer from the Jenkins server (pthreads, yaml etc are already configured). Most plugins work too as long as you update the API versions :)

  14. lucasvitegui
    Offline

    lucasvitegui Active Member

    Joined:
    Apr 18, 2015
    Posts:
    191
    Minecraft User:
    lucasviteguiBR
    Could you please share the link where you download php7 ?
  15. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    http://jenkins.pocketmine.net/job/PHP-PocketMine-Linux/
    Woow!! I'll try it. Hope to see PocketMine with PHP 7 running ;)
    Thank you :D
  16. lucasvitegui
    Offline

    lucasvitegui Active Member

    Joined:
    Apr 18, 2015
    Posts:
    191
    Minecraft User:
    lucasviteguiBR
  17. lucasvitegui
    Offline

    lucasvitegui Active Member

    Joined:
    Apr 18, 2015
    Posts:
    191
    Minecraft User:
    lucasviteguiBR
    Someone Know what are causing it ?
    PocketMine-MP Crash Dump Sat Oct 10 04:24:17 ADT 2015

    Error: Call to a member function hasPermission() on null
    File: /src/pocketmine/Player
    Line: 449
    Type: E_ERROR

    Code:
    [440] return $this->perm->isPermissionSet($name);
    [441] }
    [442]
    [443] /**
    [444] * @param permission\Permission|string $name
    [445] *
    [446] * @return bool
    [447] */
    [448] public function hasPermission($name){
    [449] return $this->perm->hasPermission($name);
    [450] }
    [451]
    [452] /**
    [453] * @param Plugin $plugin
    [454] * @param string $name
    [455] * @param bool $value
    [456] *
    [457] * @return permission\PermissionAttachment
    [458] */
    [459] public function addAttachment(Plugin $plugin, $name = null, $value = null){

    Backtrace:
    #0 /src/pocketmine/Server(0): pocketmine\Server->crashDump(boolean)
    #1 /EssentialsPE.phar/src/EssentialsPE/BaseFiles/BaseSession(66): pocketmine\Player->hasPermission(boolean)
    #2 /EssentialsPE.phar/src/EssentialsPE/Loader(832): EssentialsPE\BaseFiles\BaseSession->__construct(boolean)
    #3 /EssentialsPE.phar/src/EssentialsPE/Loader(873): EssentialsPE\Loader->createSession(boolean)
    #4 /EssentialsPE.phar/src/EssentialsPE/Loader(894): EssentialsPE\Loader->getSession(boolean)
    #5 /EssentialsPE.phar/src/EssentialsPE/Tasks/AFK/AFKKickTask(27): EssentialsPE\Loader->isAFK(boolean)
    #6 /src/pocketmine/scheduler/TaskHandler(150): EssentialsPE\Tasks\AFK\AFKKickTask->onRun(boolean)
    #7 /src/pocketmine/scheduler/ServerScheduler(247): pocketmine\scheduler\TaskHandler->run(boolean)
    #8 /src/pocketmine/Server(2479): pocketmine\scheduler\ServerScheduler->mainThreadHeartbeat(boolean)
    #9 /src/pocketmine/Server(2222): pocketmine\Server->tick(boolean)
    #10 /src/pocketmine/Server(2100): pocketmine\Server->tickProcessor(boolean)
    #11 /src/pocketmine/Server(1701): pocketmine\Server->start(boolean)
    #12 /src/pocketmine/PocketMine(464): pocketmine\Server->__construct(boolean)
    #13 (1): (boolean)
    #14 (0): {main}(boolean)

    PocketMine-MP version: 1.6dev #357 [Protocol 34; API 1.13.0]
    Git commit: 0000000000000000000000000000000000000000
    uname -a: Windows NT LUCAS-PC 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) i586
    PHP Version: 5.6.6
    Zend version: 2.6.0
    OS : WINNT, win

    Loaded plugins:
    EconomyJob 2.0.3 by onebone for API(s) 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1
    PeacefulSpawn 2.4 by LDX for API(s) 1.3.1, 1.4.0
    AdvancedKits 2.2 by luca28pet for API(s) 1.12.0
    BackDeath 1.0.0 by EkiFoX for API(s) 1.0.0
    BasicHUD 1.0.6 by aliuly for API(s) 1.12.0
    BetterGenerators 0.8.1 by Chezzik for API(s) 1.12.1
    ChestLocker 1.2 by EvolSoft for API(s) 1.8.0
    ClearLagg 1.1.0 by LegendOfMCPE for API(s) 1.0.0
    CustomAlerts 1.6 by EvolSoft for API(s) 1.12.0
    DevTools 1.10.0 by PocketMine Team for API(s) 1.3.1
    EconomyAPI 2.0.8 by onebone for API(s) 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1
    EconomyLand 2.0.8 by onebone for API(s) 1.12.0
    EconomySell 2.0.6 by onebone for API(s) 1.12.0
    EconomyShop 2.0.6 by onebone for API(s) 1.12.0
    EssentialsPE 1.1.2 by LegendsOfMCPE Team for API(s) 1.12.0
    FactionsPro 1.2.0 by Tethered_ for API(s) 1.4.0
    Farms 1.0-non-alpha by hm for API(s) 1.4.1
    GrabBag 2.2.7 by aliuly for API(s) 1.10.0, 1.11.0, 1.12.0
    HealthStats 1.1.1 by Striker209_MPE for API(s) 1.3.1
    iProtector 3.1a by LDX for API(s) 1.9.0
    KillHeart 1.0.0 by BukkitPlaysMC for API(s) 1.0.0
    LiveSigns 1.2.1 by aliuly for API(s) 1.12.0
    MagicTelePortal 1.3.2 by aliuly for API(s) 1.10.0
    ManyWorlds 2.0.1 by aliuly for API(s) 1.10.0
    PurePerms 1.1.12 by 64FF00 for API(s) 1.13.0
    PvPWorlds 1 by for API(s) 1.0.0
    RandomItem 4.2 by LDX for API(s) 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0
    SimpleAuth 1.7.1 by PocketMine Team, shoghicp for API(s) 1.12.0
    Slapper 1.2.5 by jojoe77777 for API(s) 1.12.0
    Sneak 1.1 by CrazedMiner for API(s) 1.12.0
    TapToDo 2.2 by Falk for API(s) 1.0.0
    TimeCommander 2 by LDX for API(s) 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0
    VoteBan 1.0.2 by GmWM for API(s) 1.12.0
    VoteReward 2.1 by LDX for API(s) 1.0.0, 1.1.0, 1.2.0, 1.3.0
    WorldEditArt 1.0.0_beta_dev_#048 by PEMapModder for API(s) 1.0.0
    xyz 1.0.1 by unerds for API(s) 1.0.0
    PureChat 1.2.8 by 64FF00 for API(s) 1.11.0
    SimpleAuthHelper 2.0.4 by aliuly for API(s) 1.12.0
    KillRate 2.1.0 by aliuly for API(s) 1.12.0
  18. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    EssentialsPE Did That... Hope it gets fixed..
    PEMapModder likes this.
  19. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    It doesn't work anyway. PocketMine starts with an error message which says that Weakref extension can't be found. I've already tried to edit PocketMine source and removing Weakref extension check but it crashes anyway.
    DunxandMinecraft likes this.
  20. DunxandMinecraft
    Offline

    DunxandMinecraft Active Member

    Joined:
    Oct 26, 2014
    Posts:
    158
    Well written.
    Legoboy0215 likes this.

Share This Page

Advertisement