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

Inspiration How to start learning writing plugins

Comments in 'Resources' started by PEMapModder, Feb 8, 2014.

  1. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Nope, I am talking Linux. And in there you do get a PHAR command (See its manual here)
  2. joshuac666
    Offline

    joshuac666 New Member

    Joined:
    Apr 15, 2015
    Posts:
    18
    Minecraft User:
    joshuac68
    PEMapModder, could you please help... Here's a screenshot of the code: [​IMG]
    Hopefully its self explanatory...
  3. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    PluginBase and CommandSender are something that you don't need to hurry to understand. CommandSender just tells you $sender is an instance of CommandSender, so you can call the CommandSender functions upon $sender.
  4. joshuac666
    Offline

    joshuac666 New Member

    Joined:
    Apr 15, 2015
    Posts:
    18
    Minecraft User:
    joshuac68
    That doesn't really help, like, at all...
  5. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    You don't really need to understand if you just want to make something. However if you are really interested, go to http://php.net/manual/en/language.oop5.php
  6. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Maybe add :
    Code:
     $sender->sendMessage("Your name is ". ($sender->getName()) . " !"); 
    Remove the sender->getName()
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    This was ages ago...
  8. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Parentheses not necessary.
  9. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Really? I did not know that. #BlameMyBrain
  10. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Sorry, I mean this tutorial was written ages ago and the console() function was deprecated like more than one year ago.
  11. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Sorry, I don't really have time.
  12. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    School or just plain no time?
  13. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    School, and LegionPE, and some projects I wish to complete.
    Legoboy0215 likes this.
  14. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    I learned a bunch of stuff from the open source legionpe code! FYI, I did not "Copy&Paste".
    PEMapModder likes this.
  15. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    I myself do a lot of copy paste. However I do try to understand what I am pasting and usually try to figure it out myself before asking here.

    Usually googling for additional examples.

    I don't mind much if people copy my code. What annoys me is when people copy paste them, make changes that break things, then ask me to fix it for them.
    PEMapModder likes this.
  16. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Yep. Totally right. You know, when I copy and paste, I read the parts I understand only. Also, people on the forums give you little snippets of code so nevwr a lot.
  17. Kamrentheslayer
    Offline

    Kamrentheslayer New Member

    Joined:
    Feb 19, 2015
    Posts:
    14
    Minecraft User:
    Kamren
    Great in my opinion I might of fell asleep in the last two paragraphs xD
  18. DunxandMinecraft
    Offline

    DunxandMinecraft Active Member

    Joined:
    Oct 26, 2014
    Posts:
    158
    How can I use comamnd to activate a action such as an effect to the player?
  19. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    P
    I'm writing a new tutorial.
    KubixQ and DunxandMinecraft like this.
  20. DunxandMinecraft
    Offline

    DunxandMinecraft Active Member

    Joined:
    Oct 26, 2014
    Posts:
    158
    Thanks :)

Share This Page

Advertisement