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

Can some Developer help me with a plugin?

Comments in 'Plugin Development' started by TonyDroidd, Apr 20, 2015.

  1. TonyDroidd
    Offline

    TonyDroidd Active Member

    Joined:
    Sep 6, 2014
    Posts:
    180
    Minecraft User:
    TonyDroidd
  2. Artide
    Offline

    Artide Active Member

    Joined:
    Apr 20, 2015
    Posts:
    214
    Minecraft User:
    Artide5
    Sure, I'm not a dev but I know some php. What do you need help with?
    TonyDroidd likes this.
  3. Praxthisnovcht
    Offline

    Praxthisnovcht Notable Member Plugin Developer

    Joined:
    Mar 10, 2014
    Posts:
    699
    Plugins:
    4
    Minecraft User:
    PraxHellTag
    I would look: D
    TonyDroidd likes this.
  4. sekjun9878
    Offline

    sekjun9878 Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    108
    Plugins:
    1
    Minecraft User:
    sekjun9878
    Two things I can see straight from the code is that 1. You're not implementing the Listener interface therefore your event listener is not getting registered (extends PluginBase implements Listener), and 2. Your PHP file name should be Main.php, not main.php. I believe SPL autoloaders (what matches the namespace to the filename) are case sensitive.
    TonyDroidd and PEMapModder like this.
  5. TonyDroidd
    Offline

    TonyDroidd Active Member

    Joined:
    Sep 6, 2014
    Posts:
    180
    Minecraft User:
    TonyDroidd
    You can :D
    Praxthisnovcht likes this.
  6. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    The code is somewhat using improper syntax. You forgot a bracket after Listener.
    Last edited: Apr 20, 2015
  7. Praxthisnovcht
    Offline

    Praxthisnovcht Notable Member Plugin Developer

    Joined:
    Mar 10, 2014
    Posts:
    699
    Plugins:
    4
    Minecraft User:
    PraxHellTag
    I proposed a change, nothing great
    TonyDroidd likes this.
  8. TonyDroidd
    Offline

    TonyDroidd Active Member

    Joined:
    Sep 6, 2014
    Posts:
    180
    Minecraft User:
    TonyDroidd
  9. TonyDroidd
    Offline

    TonyDroidd Active Member

    Joined:
    Sep 6, 2014
    Posts:
    180
    Minecraft User:
    TonyDroidd
  10. Artide
    Offline

    Artide Active Member

    Joined:
    Apr 20, 2015
    Posts:
    214
    Minecraft User:
    Artide5
    If you want some help press start conversation.
    PEMapModder and TonyDroidd like this.

Share This Page

Advertisement