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

[Old API] [Tutorial] Plugin Making Section 2

Comments in 'Plugin Development' started by Glitchmaster_PE, Nov 12, 2013.

?

Like the second part?

  1. Yes

    40 vote(s)
    93.0%
  2. No

    3 vote(s)
    7.0%
  1. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Thread stickied!
    Darunia18 likes this.
  2. saadre
    Offline

    saadre New Member

    Joined:
    Dec 16, 2013
    Posts:
    1
    Minecraft User:
    King_iceman
    Are you going to put up the handlers tutorial and will you go over the code for when you touch a block and make a command run please I've been waiting for like a month I really want to get into making plugins but I can't find a tutorial that makes sense yours is the best one I have found I've gone over sekjun sand smiley guys tut but I still can't understand most of the stuff I find in a plugin. Thank for the tutorial
  3. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
    I may, but for the same reasons I have not released any new plugins recently (I am busy) not soon
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Can you just tell me where in the source code can I find the events and the $data sent?
  5. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Just search the GitHub repo for the event name, they are sent from different places.
    PEMapModder likes this.
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Thanks a lot and lots and extremely lots of lots. I found it: PocketMinecraftServer::dHandle()
  7. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Yep, that's how you fire events.
  8. inventorman101
    Offline

    inventorman101 New Member

    Joined:
    Aug 26, 2013
    Posts:
    15
    Minecraft User:
    inventorman101
    Hey @Glitchmaster_PE
    Great job on your tutorial! It has a great format/layout I am looking forward to a continuation of your tutorials :)
  9. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
    Thanks :D
  10. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    @Glitchmaster_PE is there any way to put issuer username when he do a command with an alias?
    Like... he do /gmc (alias for /gamemode 1) and put automatically his username... what I need to add into this code:

  11. Exxarion
    Offline

    Exxarion Active Member Plugin Developer

    Joined:
    Jan 5, 2014
    Posts:
    242
    Plugins:
    1
    Minecraft User:
    Notch
    This is handy for beggining plugin developers! This shows them the basics on making a plugin, and they will eventually learn How to make their own plugins! Great tutorial, glitchmaster!
  12. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
    Thank you!
  13. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Wow! I will start making personal plugins first xD
    Can't wait for "Section 3: Handlers"!

    Thank you so much!
  14. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    @Glitchmaster_PE is there a way to only type anything once? like... instead of write:
    "$username = $issuer->username"
    on every function I create?

    Thanks :D
  15. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
    Hmm, I don't usually create many plugins so I haven't run into that problem yet. But I guess you could make $username a public variable
  16. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    I'm writing diferrent commands and making aliases, that's why, and also I get an error at:

    public function __destruct(){
    }
    }
    ?>
    Can I contact you via e-mail for more details?
  17. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
  18. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
  19. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    K sorry
  20. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
    Its fine :D

Share This Page

Advertisement