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

Solved problem by developing a simple plugin

Comments in 'Plugin Development' started by 0neGam3r, Jul 18, 2016.

  1. 0neGam3r
    Offline

    0neGam3r New Member

    Joined:
    Aug 26, 2015
    Posts:
    23
    Minecraft User:
    0NEGAM3R
    Hi all I need help with the plugin I'm doing is basic but I'm starting to do. well the problem is that I get the below:

    ERROR
    [18:57:38] [Server thread/INFO]: Loading pocketmine.yml...
    [18:57:38] [Server thread/INFO]: Loading server properties...
    [18:57:38] [Server thread/INFO]: Selected English (eng) as the base language
    [18:57:38] [Server thread/INFO]: Starting Minecraft: PE server version v0.15.0.0 alpha
    [18:57:38] [Server thread/INFO]: Opening server on 0.0.0.0:19132
    [18:57:39] [Server thread/INFO]: This server is running PocketMine-MP version 1.6dev "[REDACTED]" (API 2.0.0)
    [18:57:39] [Server thread/INFO]: PocketMine-MP is distributed under the LGPL License
    [18:57:39] [Server thread/INFO]: Loading recipes...
    [18:57:39] [Server thread/INFO]: Loading DevTools v1.11.0
    [18:57:40] [Server thread/INFO]: Enabling DevTools v1.11.0
    [18:57:40] [Server thread/INFO]: Loading source plugin Instant v0.1

    Warning: Uncaught ClassNotFoundException: Class pocketmine\Command not found in phar://C:/Users/pato/Desktop/PocketMine-MP/PocketMine-MP.phar/src/spl/BaseClassLoader.php:144
    Stack trace:
    #0 [internal function]: BaseClassLoader->loadClass('pocketmine\\Comm...')
    #1 C:\Users\pato\Desktop\PocketMine-MP\plugins\Instant\src\ONEGAM3R\Instant\Instant.php(13): spl_autoload_call('pocketmine\\Comm...')
    #2 phar://C:/Users/pato/Desktop/PocketMine-MP/PocketMine-MP.phar/src/spl/BaseClassLoader.php(128): include('C:\\Users\\pato\\D...')
    #3 [internal function]: BaseClassLoader->loadClass('ONEGAM3R\\Instan...')
    #4 [internal function]: spl_autoload_call('ONEGAM3R\\Instan...')
    #5 phar://C:/Users/pato/Desktop/PocketMine-MP/plugins/DevTools_v1.11.0.phar/src/FolderPluginLoader/FolderPluginLoader.php(64): class_exists('ONEGAM3R\\Instan...', true)
    #6 phar://C:/Users/pato/Desktop/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/plugin/PluginManager.php(152): FolderPluginLoader\FolderPluginLoader->loadPlugin('C:\\Users\\pato\\D...')
    #7 phar://C: in phar://C:/Users/pato/Desktop/PocketMine-MP/PocketMine-MP.phar/src/spl/BaseClassLoader.php on line 144

    Fatal error: Declaration of ONEGAM3R\Instant\Instant::eek:nCommand(pocketmine\command\CommandSender $sender, pocketmine\Command $command, $label, array $args) must be compatible with pocketmine\command\CommandExecutor::eek:nCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, $label, array $args) in C:\Users\pato\Desktop\PocketMine-MP\plugins\Instant\src\ONEGAM3R\Instant\Instant.php on line 13
    [18:57:41] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
    [18:57:41] [Server thread/EMERGENCY]: Please upload the "C:\Users\pato\Desktop\PocketMine-MP\CrashDump_Sun_Jul_17-18.57.41-ACT_2016.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
    [18:57:41] [Server thread/INFO]: Disabling DevTools v1.11.0
    bin\php\php.exe: Exit 1

    CRASHDUMP

    PocketMine-MP Crash Dump Sun Jul 17 18:57:41 ACT 2016

    Error: Declaration of ONEGAM3R\Instant\Instant::eek:nCommand(pocketmine\command\CommandSender $sender, pocketmine\Command $command, $label, array $args) must be compatible with pocketmine\command\CommandExecutor::eek:nCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, $label, array $args)
    File: /Instant/src/ONEGAM3R/Instant/Instant
    Line: 13
    Type: E_COMPILE_ERROR

    THIS CRASH WAS CAUSED BY A PLUGIN

    Code:
    [4]
    [5] use pocketmine\plugin\PluginBase;
    [6] use pocketmine\Command;
    [7] use pocketmine\command\CommandSender;
    [8] use pocketmine\event\Listener;
    [9]
    [10]
    [11]
    [12]
    [13] class Instant extends PluginBase implements Listener{
    [14] public function onLoad() {
    [15] $this->getLogger()->info("Cargando Plugin");
    [16] }
    [17]
    [18] public function onEnable() {
    [19] $this->getLogger()->info("Iniciando Plugin");
    [20]
    [21] }
    [22] public function onDisable() {
    [23] $this->getLogger()->info("Apagando Plugin");

    Backtrace:
    #0 (): pocketmine\Server->crashDump(boolean)

    PocketMine-MP version: 1.6dev #0 [Protocol 81; API 2.0.0]
    Git commit: 0000000000000000000000000000000000000000
    uname -a: Windows NT PATO-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64
    PHP Version: 7.0.3
    Zend version: 3.0.0
    OS : WINNT, win

    Loaded plugins:
    DevTools 1.11.0 by PocketMine Team for API(s) 2.0.0

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

    ===BEGIN CRASH DUMP===
    eNrNWm1v20YS/isLJUDtgyiLki3ZKlzAZzu9HJJYZzvooVURrMilxDPJZblLy2qR/37PzC4pynF6
    xV0/nBFA5L7MPjP7zMsu81vPprnqzcLjyen07Ox0EvZ7qqp01Zv91rPbEl2960+XN+/nb99df7q+
    vb257fV7uTJGrqjvSkWZrKRNdSF0Im4+XH9/8X58u1i8LYyVhW0fZjNdXOo8l0V8UOroQdk8LdRi
    Ebm2xcJ33qkiVpV4bfi3L7pj/RDx2k/qi9eZXKqsL2RVya14LauVORR5baxYKoFRJZAtMyU2qV2L
    31v2+klFtdXVnwHz+dj/gBf2TNKMjHnkbXVkquioMWXb6H8xPMMy2LLx536vzOpVWvRmtqpVvxfp
    WNHGHUMYxp3gpzZqD5ybsFjM+fev0qhvMXLywkiPnrqnL3S/bBEaffrCaPWoiAzvUmNV4YadOZDh
    0P+G/nfkf8f4BbmMEV5zoZ4wOTZih12keZmpHLKNaGT/RpPJAgJ/Zb3M0kgkdRE5jhbvtIwPDgWP
    OvGj6O+1Xacm+G6l7Du9Wqnq4DD4Li0SfbDoXWKfoKH2Cy96h4Q/nPjZn+ll6lGffnXh60KCis3S
    Z39s6bdFGqVfrj0adqbTe9jBMhp9FcNVajogRuM/BuKilF/oD+7ZSkag20+9V0NxcDjb2+87VT2q
    KvguqqRZX9V5ebDUOlOyOOz93O+taJ9kRlTFKANsABIOJrF6BKxlnWZxbzYEuyttdaQx8BRxSZYp
    ho0Gw8EQo1apxdvwD/5hQiUfsnRJcwanLKEuJIW+3g8pdNsY8eFezC/ub4L5pZgMQsEwxHQyDMVB
    M2Qq5pVOEP0AWWbiOk7ZsKRtGikxl9GDCA/FxfuryTFWKNcl5E+BeIy3X0FevI69Auj8pA2t//bD
    h3s08MsG3tz6tSELXanHe9iOnz3itqm/Z78wZMGytmtdGdqZOW/Je2yJuFcyJ9uzFX/yZsS7YlrG
    TQiJVUk+hiHoMzqxV92GXFKwaddfLDpIMjgW+u7uL27vP87RsFFLk1rCu7a2NLOjI+zZul4OEDqO
    dsiOWhmfSXFkk1xZVTUQmEgDMKFUlU0V2ejVvH0Tl7pI0pWgCLqoFsWrO2nF3+tMhBMRTmejyWw8
    FheX92I0DCc0wMkLyJDnP378cHV9e3l78ea+01Xqyp6HZ+F4RI0rDMwRVs+H9JbLp6DM5Bbwzkfc
    Ykq5KQIiqmInO3fLbNbQPMgQks51klCLs3PwS62q7bkuOk1VhGl+VK5tfE5WgeMkdibm18K5EnXK
    otDwZeUhBDJapwisHP68SJllehMkWbpatys7iLJIc5k141xbrpdNQ6IrCG619VPXsoojXbXv5WPp
    x8dpkqRRndntech2YpdGBg2MsjYtVuacmjPgy5y1N7rK4l2bUSruDKFa4/zq+s3Fx3e8GWSUQYno
    j2nx+V/4D+ohRwdGPiqPgtyojTqDbZ4RO8R7sBTZn4hR+9qE+CGgo9jxLng/B1/E/VohjzSgkZmV
    sGuFWAly2TXYFJHZuaBIiyirYxXjQXzBS5J1p3NFZZD9UqaRieoLjZ7KkEixrJR8EFtdV16WSBMB
    26dJyivA7BUolW1J8Ae1acUdxSqRMLwRG118Y4UsSyUrQabJoWwECmwBX1A8d3pv1qoQdbmqZAwB
    g0VBXHfCZot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/vu9aal/eJo6f9jvpJLOHEG2bKt3f
    uR+UfIDz86fSMS+FIjd7bsa0a2q8WjXmGdPAfcY17LqmO23pbuw7TVvJgPlr5O3llPba33jwl9Jw
    MKHVdf4p1hYBoDNz1d3XHymP3Mw5j/nmCcF4c937/PnfGw0Cdg==
    ===END CRASH DUMP===
  2. Yeelze
    Offline

    Yeelze New Member

    Joined:
    Apr 2, 2016
    Posts:
    31
    Minecraft User:
    Yeelze
    Fix line 6
    PHP:
    pocketmine\command\Command;
    applqpak likes this.
  3. 0neGam3r
    Offline

    0neGam3r New Member

    Joined:
    Aug 26, 2015
    Posts:
    23
    Minecraft User:
    0NEGAM3R


    <br class="Apple-interchange-newline"><div id="inner-editor"></div>

    Thanks I'll try.
  4. 0neGam3r
    Offline

    0neGam3r New Member

    Joined:
    Aug 26, 2015
    Posts:
    23
    Minecraft User:
    0NEGAM3R
    thanks I run but I get another error that is not let me run commands


    [19:55:09] [Server thread/CRITICAL]: Unhandled exception executing command 'leather' in leather: Class ONEGAM3R\Instant\Item not found
    [19:55:09] [Server thread/CRITICAL]: ClassNotFoundException: "Class ONEGAM3R\Instant\Item not found" (EXCEPTION) in "/src/spl/BaseClassLoader" at line 144
  5. Yeelze
    Offline

    Yeelze New Member

    Joined:
    Apr 2, 2016
    Posts:
    31
    Minecraft User:
    Yeelze
    PHP:
    use pocketmine\item\Item;
    applqpak and 0neGam3r like this.
  6. 0neGam3r
    Offline

    0neGam3r New Member

    Joined:
    Aug 26, 2015
    Posts:
    23
    Minecraft User:
    0NEGAM3R
    Thank you so much helped me quite thanks to you I made my first plugin :D
  7. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    You should use an IDE for future development, it will basically show you when you need a use statement.
  8. 0neGam3r
    Offline

    0neGam3r New Member

    Joined:
    Aug 26, 2015
    Posts:
    23
    Minecraft User:
    0NEGAM3R

    I use netbeans IDE but did not give me suggestion use stament.
  9. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    It doesn't show any help/autocomplete(no functions) if you didn't implement it.
    ImagicalGamer likes this.
  10. 0neGam3r
    Offline

    0neGam3r New Member

    Joined:
    Aug 26, 2015
    Posts:
    23
    Minecraft User:
    0NEGAM3R
    although I am a rookie thanks XD
  11. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Get PHPStorm.
  12. 0neGam3r
    Offline

    0neGam3r New Member

    Joined:
    Aug 26, 2015
    Posts:
    23
    Minecraft User:
    0NEGAM3R

    because it would be better PhpStorm rather than Netbeans IDE?
  13. 0neGam3r
    Offline

    0neGam3r New Member

    Joined:
    Aug 26, 2015
    Posts:
    23
    Minecraft User:
    0NEGAM3R
    Bro PhpStorm is not free...
  14. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    *evil laugh* Well, I got it for free.
    ImagicalGamer and 0neGam3r like this.
  15. 0neGam3r
    Offline

    0neGam3r New Member

    Joined:
    Aug 26, 2015
    Posts:
    23
    Minecraft User:
    0NEGAM3R
    tell me how do I get free please.... *off-topic*
  16. SOFe
    Offline

    SOFe Banned

    Joined:
    May 28, 2016
    Posts:
    386
    Minecraft User:
    Herobrine
    And nobody has mentioned the most important thing, PhpStorm or NetBeans...

    You need to add PocketMine API into the include/library path for the project in your IDE!
    PocketKiller and CraftYourBukkit like this.
  17. Syntaxious
    Offline

    Syntaxious New Member

    Joined:
    Sep 15, 2015
    Posts:
    19
    Minecraft User:
    Syntaxious
    What I was just about to say :)
  18. ImagicalGamer
    Offline

    ImagicalGamer Active Member

    Joined:
    Feb 25, 2016
    Posts:
    141
    Minecraft User:
    ImagicalGamer
    haha same
  19. 0neGam3r
    Offline

    0neGam3r New Member

    Joined:
    Aug 26, 2015
    Posts:
    23
    Minecraft User:
    0NEGAM3R



    read before commenting on this post, is [SOLVED]
  20. SOFe
    Offline

    SOFe Banned

    Joined:
    May 28, 2016
    Posts:
    386
    Minecraft User:
    Herobrine
    It just means the problem in the OP is solved. It doesn't necessarily mean that your problem with IDEs will be solved. This is also important for future readers.
    ImagicalGamer likes this.

Share This Page

Advertisement