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

Solved PHP7 Issues I need some help

Comments in 'Plugin Development' started by ImagicalGamer, Mar 12, 2016.

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

    ImagicalGamer Active Member

    Joined:
    Feb 25, 2016
    Posts:
    141
    Minecraft User:
    ImagicalGamer
    My SG plug was made for PHP7 support, now it's not working on PocketMine/PHP7 Clients. If anyone can help that would be great.
    SOURCE CODE
    Last edited: Mar 12, 2016
  2. Vaivez66
    Offline

    Vaivez66 Notable Member Plugin Developer

    Joined:
    Jun 10, 2015
    Posts:
    402
    Plugins:
    2
    Ugh... This is PocketMine...
  3. ImagicalGamer
    Offline

    ImagicalGamer Active Member

    Joined:
    Feb 25, 2016
    Posts:
    141
    Minecraft User:
    ImagicalGamer
    Same concept. Isn't working here either.
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Define "it is not working".

    And also, add 2.0.0 to the API versions.
    PocketKiller, ImagicalGamer and Lambo like this.
  5. ImagicalGamer
    Offline

    ImagicalGamer Active Member

    Joined:
    Feb 25, 2016
    Posts:
    141
    Minecraft User:
    ImagicalGamer
    I did have API 2.0.0 and the plugin wouldn't load on PHP7 client's. So I removed it and now it's working for PHP7 but won't load on PHP5 clients. I think it's from a mix of PHP7 and PHP5 but I thought I fixed all of that. Do you see anything else that could be causing the PHP7 issues?
  6. ImagicalGamer
    Offline

    ImagicalGamer Active Member

    Joined:
    Feb 25, 2016
    Posts:
    141
    Minecraft User:
    ImagicalGamer
    @PEMapModder This is the issue:
    Code:
    Call to undefined method pocketmine\level\Level::setSpawn()" (EXCEPTION) in "/SGV3.phar/src/SurvivalGamesV3/SurvivalGamesV3" at line 294
    But I'm not sure what to do to fix that PHP7 wise.
  7. ImagicalGamer
    Offline

    ImagicalGamer Active Member

    Joined:
    Feb 25, 2016
    Posts:
    141
    Minecraft User:
    ImagicalGamer
    Thanks @Oneeb ! I'm "fully" learning PHP7 now.
    Oneeb likes this.
  8. austina5511
    Offline

    austina5511 New Member

    Joined:
    Sep 25, 2015
    Posts:
    9
    Minecraft User:
    austina5511
    ImagicalGamer likes this.
  9. ImagicalGamer
    Offline

    ImagicalGamer Active Member

    Joined:
    Feb 25, 2016
    Posts:
    141
    Minecraft User:
    ImagicalGamer
    =D hey. You wouldn't believe the changes that have been made. There's about 15 new features coming out in a few days.
  10. austina5511
    Offline

    austina5511 New Member

    Joined:
    Sep 25, 2015
    Posts:
    9
    Minecraft User:
    austina5511
    Yes It seems like it would be cool, just not working on my php7 genisys server
  11. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    This is not a chatroom... Private messages exist for a reason.
    raghavs13 and ImagicalGamer like this.
  12. ImagicalGamer
    Offline

    ImagicalGamer Active Member

    Joined:
    Feb 25, 2016
    Posts:
    141
    Minecraft User:
    ImagicalGamer
    I apologize.
    Oneeb likes this.
  13. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Clients don't have PHP. Only servers have PHP.
Thread Status:
Not open for further replies.

Share This Page

Advertisement