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

Updating plugins for API 2.0.0

Comments in 'Plugin Development' started by LDX, Sep 20, 2015.

  1. killer549
    Offline

    killer549 New Member

    Joined:
    Jun 18, 2015
    Posts:
    15
    Minecraft User:
    killer549
    This is cause of using api 2.0.0
    This plugin use:
    use pocketmine\nbt\NBT;
    use pocketmine\nbt\tag\Compound;
    use pocketmine\nbt\tag\String;
    In api 2.0.0 u must add the word tag ".....Tag" like this

    ex: use pocketmine\nbt\StringTag;
    do the same with compound and nbt

    So if u wnt that plugin to work, u must edit by PHP and let it private.

    Pls reply if u need more
    Happy to Help! :)
    AndroidHackPro likes this.
  2. AndroidHackPro
    Offline

    AndroidHackPro New Member

    Joined:
    Jul 7, 2016
    Posts:
    9
    Minecraft User:
    AndroidHackPro
    You could fix this plugin on my github?
  3. AndroidHackPro
    Offline

    AndroidHackPro New Member

    Joined:
    Jul 7, 2016
    Posts:
    9
    Minecraft User:
    AndroidHackPro
    Now this appears =/

    Genisys Crash Dump Mon Jul 11 20:50:21 PDT 2016

    Error: Class aliuly\livesigns\common\BasicPlugin not found
    File: /src/spl/BaseClassLoader
    Line: 144
    Type: notice

    THIS CRASH WAS CAUSED BY A PLUGIN

    Code:
    [135]
    [136] if(method_exists($name, "onClassLoaded") and (new ReflectionClass($name))->getMethod("onClassLoaded")->isStatic()){
    [137] $name::eek:nClassLoaded();
    [138] }
    [139]
    [140] $this->classes[] = $name;
    [141]
    [142] return true;
    [143] }elseif($this->getParent() === null){
    [144] throw new ClassNotFoundException("Class $name not found");
    [145] }
    [146]
    [147] return false;
    [148] }
    [149]
    [150] /**
    [151] * Returns the path for the class, if any
    [152] *
    [153] * @param string $name
    [154] *

    Backtrace:
    #0 /LiveSigns2.phar/src/aliuly/livesigns/Main(21): spl_autoload_call(string aliuly\livesigns\common\BasicPlugin)
    #1 /src/spl/BaseClassLoader(128): include(string phar:///home/minecraft/multicraft/servers/server5886/plugins/LiveSigns2.phar/src/aliuly/livesigns/Main.php)
    #2 (): BaseClassLoader->loadClass(string aliuly\livesigns\Main)
    #3 (): spl_autoload_call(string aliuly\livesigns\Main)
    #4 /src/pocketmine/plugin/PharPluginLoader(64): class_exists(string aliuly\livesigns\Main, boolean 1)
    #5 /src/pocketmine/plugin/PluginManager(155): pocketmine\plugin\PharPluginLoader->loadPlugin(string phar:///home/minecraft/multicraft/servers/server5886/plugins/LiveSigns2.phar)
    #6 /src/pocketmine/plugin/PluginManager(333): pocketmine\plugin\PluginManager->loadPlugin(string /home/minecraft/multicraft/servers/server5886/plugins/LiveSigns2.phar, array Array())
    #7 /src/pocketmine/Server(2024): pocketmine\plugin\PluginManager->loadPlugins(string /home/minecraft/multicraft/servers/server5886/plugins/)
    #8 /src/pocketmine/PocketMine(467): pocketmine\Server->__construct(pocketmine\CompatibleClassLoader object, pocketmine\utils\MainLogger object, string phar:///home/minecraft/multicraft/jar/genisys.phar/, string /home/minecraft/multicraft/servers/server5886/, string /home/minecraft/multicraft/servers/server5886/plugins/, string unknown)
    #9 (1): require_once(string phar:///home/minecraft/multicraft/jar/genisys.phar/src/pocketmine/PocketMine.php)

    Genisys version: 1.2dev #621 [Protocol 81; API 2.0.0]
    uname -a: Linux mcpe1.netherbox.com 2.6.32-042stab108.8 #1 SMP Wed Jul 22 17:23:23 MSK 2015 x86_64
    PHP version: 7.0.3
    Zend version: 3.0.0
    OS : Linux, linux
  4. killer549
    Offline

    killer549 New Member

    Joined:
    Jun 18, 2015
    Posts:
    15
    Minecraft User:
    killer549
    Of course!
  5. AndroidHackPro
    Offline

    AndroidHackPro New Member

    Joined:
    Jul 7, 2016
    Posts:
    9
    Minecraft User:
    AndroidHackPro
  6. AndroidHackPro
    Offline

    AndroidHackPro New Member

    Joined:
    Jul 7, 2016
    Posts:
    9
    Minecraft User:
    AndroidHackPro
    If you solve will give to you all the credit =)
  7. killer549
    Offline

    killer549 New Member

    Joined:
    Jun 18, 2015
    Posts:
    15
    Minecraft User:
    killer549
    ok try it now

Share This Page

Advertisement