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

Where is mistake?

Comments in 'Plugin Development' started by Kiosek, Jul 21, 2015.

  1. Kiosek
    Offline

    Kiosek New Member

    Joined:
    Jun 17, 2014
    Posts:
    34
    Minecraft User:
    Cecil107
    I cant run this plugin :
    PHP:
    <?php

    namespace HText;

    use 
    pocketmine\plugin\PluginBase;
    use 
    pocketmine\event\Listener;
    use 
    pocketmine\level\position;
    use 
    pocketmine\math\Vector3;
    use 
    pocketmine\level\particle\FloatingTextParticle;

    class 
    Main extends PluginBase implements Listener{

        public function 
    onDisable() {
            
    $this->getLogger()->info("Off!");
        }
        private 
    $particles = [];
        public function 
    onEnable(){
            
    $this->getServer()->getPluginManager()->registerEvents($this$this);
            
    $this->particles[] = new FloatingTextParticle(new Vector3(554104, -114), ""TextFormat::GOLD "Vtej na Mesru!");
            
    $this->getLogger()->info("On!");
        }
    }
    name: HText main: HText\Main version: 1.1.0 api: 1.0.0 author: Cecil107
    PocketMine-MP Crash Dump Tue Jul 21 17:09:40 BST 2015

    Error: Class Cecil107\Main not found
    File: /src/spl/BaseClassLoader
    Line: 131
    Type: notice

    THIS CRASH WAS CAUSED BY A PLUGIN

    Code:
    [122] *
    [123] * @return bool
    [124] */
    [125] public function loadClass($name){
    [126] $path = $this->findClass($name);
    [127] if($path !== \null){
    [128] include($path);
    [129] if(!\class_exists($name, \false) and !\interface_exists($name, \false) and !\trait_exists($name, \false)){
    [130] if($this->getParent() === \null){
    [131] throw new ClassNotFoundException("Class $name not found");
    [132] }
    [133] return \false;
    [134] }
    [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]

    Backtrace:
    #0 (): spl_autoload_call(string Cecil107\Main)
    #1 /src/pocketmine/plugin/PharPluginLoader(64): class_exists(string Cecil107\Main, boolean 1)
    #2 /src/pocketmine/plugin/PluginManager(152): pocketmine\plugin\PharPluginLoader->loadPlugin(string C:\Users\vesel_000\Desktop\Minecraft\PocketMine-MP\plugins\phar_plugiin_P6f4qdJ2DYpSdde.phar)
    #3 /src/pocketmine/plugin/PluginManager(296): pocketmine\plugin\PluginManager->loadPlugin(string C:\Users\vesel_000\Desktop\Minecraft\PocketMine-MP\plugins\phar_plugiin_P6f4qdJ2DYpSdde.phar, array Array())
    #4 /src/pocketmine/Server__32bit(1718): pocketmine\plugin\PluginManager->loadPlugins(string C:\Users\vesel_000\Desktop\Minecraft\PocketMine-MP\plugins\)
    #5 /src/pocketmine/PocketMine(464): pocketmine\Server->__construct(pocketmine\CompatibleClassLoader object, pocketmine\utils\MainLogger object, string phar://C:/Users/vesel_000/Desktop/Minecraft/PocketMine-MP/PocketMine-MP.phar/, string C:\Users\vesel_000\Desktop\Minecraft\PocketMine-MP\, string C:\Users\vesel_000\Desktop\Minecraft\PocketMine-MP\plugins\)
    #6 (1): require(string phar://C:/Users/vesel_000/Desktop/Minecraft/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

    PocketMine-MP version: 1.5dev #1254 [Protocol 27; API 1.12.0]
    Git commit: 0000000000000000000000000000000000000000
    uname -a: Windows NT MARECEK-POCITAC 6.3 build 9200 (Windows 8.1 Home Premium Edition) i586
    PHP Version: 5.6.6
    Zend version: 2.6.0
    OS : WINNT, win

    Loaded plugins:

    ----------------------REPORT THE DATA BELOW THIS LINE-----------------------

    ===BEGIN CRASH DUMP===
    eNrtWY1v47YV/1dY3wF1CsvfdhwVPixLc+h1l7usSdFtdRFQEmWrkSVVpOK4xf3v+71HSpaTHtZu
    HQYMNYqeSD4+vo/f+yDzc8ckW9XxR9PJ6fRserYY9jqp1OayLPOy4//cMfsCy50sN0moOr3OVmkt
    1zR1ATotLlSYpKPh6Wp1JZNMgE7EeZVFII2rNH2dpERbbGTpDwYX/uAbrUo9eFBapXfD4XDwhdL3
    Ji8GV0mmwlLGZnCd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9bMj1T48OGfwOo21A==
    ===END CRASH DUMP===
  2. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    What is the name of the folder where is Main.php?
  3. Kiosek
    Offline

    Kiosek New Member

    Joined:
    Jun 17, 2014
    Posts:
    34
    Minecraft User:
    Cecil107
  4. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    on myslel celou cestu/ he meant full path
  5. Kiosek
    Offline

    Kiosek New Member

    Joined:
    Jun 17, 2014
    Posts:
    34
    Minecraft User:
    Cecil107
  6. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    I don't it is a problem with the plugin you are showing but another plugin you have in there.
  7. Kiosek
    Offline

    Kiosek New Member

    Joined:
    Jun 17, 2014
    Posts:
    34
    Minecraft User:
    Cecil107
  8. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Your error says:
    Error: Class Cecil107\Main not found​
    But your plugin.yml says:
    main: HText\Main​
    That clearly doesn't match.

    Seems to come from this phar: phar_plugiin_P6f4qdJ2DYpSdde.phar
  9. Kiosek
    Offline

    Kiosek New Member

    Joined:
    Jun 17, 2014
    Posts:
    34
    Minecraft User:
    Cecil107
    phar_plugiin_P6f4qdJ2DYpSdde.phar is the plugin
  10. MinePocket Servers
    Offline

    MinePocket Servers Active Member

    Joined:
    Mar 6, 2014
    Posts:
    69
    Minecraft User:
    MinePocket

    In short hes saying rename your folders so that they match!
  11. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    Your missing the Htext folder inside of SRC.
    Kiosek likes this.
  12. Kiosek
    Offline

    Kiosek New Member

    Joined:
    Jun 17, 2014
    Posts:
    34
    Minecraft User:
    Cecil107
    and how to fix this
    [Server thread/CRITICAL]: ClassNotFoundException: "Class Main not found" (EXCEPTION) in "/src/spl/BaseClassLoader" at line 144
    name: H-Text
    main: Main
    version: 0.1
    api: 1.0.0
    author: Cecil107
    jojoe77777 likes this.
  13. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    Máš spatně napsanou cestu k hlavní třídě v plugin.yml / bad path in plugin.yml
    jojoe77777 likes this.
  14. Kiosek
    Offline

    Kiosek New Member

    Joined:
    Jun 17, 2014
    Posts:
    34
    Minecraft User:
    Cecil107
    co tam je spatne / what is wrong there
  15. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    Nevidím to tak jak to mám vědět :D / i dont see it
  16. Kiosek
    Offline

    Kiosek New Member

    Joined:
    Jun 17, 2014
    Posts:
    34
    Minecraft User:
    Cecil107

    Attached Files:

  17. Intyre
    Offline

    Intyre Staff Member PocketMine Team

    Joined:
    Aug 24, 2013
    Posts:
    118
    Minecraft User:
    Intyre

Share This Page

Advertisement