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

Solved Create Two Php files in a plugin

Comments in 'Plugin Development' started by amiremad, Nov 2, 2015.

  1. xBeastMode
    Offline

    xBeastMode Active Member

    Joined:
    Nov 27, 2015
    Posts:
    292
    Learn PocketMine API aswell. What if you do this?
    PHP:
    class Events extends PluginBase implements EventListener{
    //lol
    }
    Fatal error: could not pass pocketmine\event\EventListener to name\author\Events on line 1
    Last edited: Jan 8, 2016
  2. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
    Edited.
  3. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    PHP:
    use pocketmine\event\Listener as EventListener;
    And you wrote wrong error exception.
    It would be ClassNotFound.
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    You know what he means...
    Primus likes this.
  5. TheDeibo
    Offline

    TheDeibo Notable Member

    Joined:
    Sep 8, 2014
    Posts:
    693
    Minecraft User:
    TheDeibo
    I found that out the hard way ;P ( my own plugin, i attempted to split them all up into sections ( one file per command ) to make it tidier. and like most of my ideas ( to my own plugins ) ... #failure
  6. XFuryMCPE
    Offline

    XFuryMCPE Active Member Plugin Developer

    Joined:
    Jun 19, 2015
    Posts:
    137
    Plugins:
    2
    Minecraft User:
    XFuriousMC
    LMAO

Share This Page

Advertisement