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

Need Help With Code

Comments in 'Plugin Development' started by Adrian, Jun 28, 2014.

  1. Adrian
    Offline

    Adrian Active Member

    Joined:
    Jun 26, 2014
    Posts:
    64
    Minecraft User:
    Adrian
    Well, I have been trying to make an auto ranks plugin and I need help loading two run commands and registering them. If you want you can find me an example of a run plugin with more than one command and run two commands per one registered command. You may edit this sample of my plugin and send back after fixed. Please include what I would do with multiple register commands, maybe a sample plugin. Thank You :D :D

    Edited file, on post #4 :D

    Attached Files:

    Last edited: Jun 28, 2014
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    What is "A" for?
  3. Adrian
    Offline

    Adrian Active Member

    Joined:
    Jun 26, 2014
    Posts:
    64
    Minecraft User:
    Adrian
    It's a rank name Rank A.
    It's another plugin called XTIRankManager
  4. Adrian
    Offline

    Adrian Active Member

    Joined:
    Jun 26, 2014
    Posts:
    64
    Minecraft User:
    Adrian
    Updated, forgot to add pay. "bank" is a player

    Attached Files:

  5. MegaSamNinja
    Offline

    MegaSamNinja Active Member

    Joined:
    Sep 13, 2013
    Posts:
    138
    Minecraft User:
    Bamuel
    Your code is pretty close to the Rankup I have

    But your code will be useless next week due to 0.9.0 and you will need to write a new one
  6. Adrian
    Offline

    Adrian Active Member

    Joined:
    Jun 26, 2014
    Posts:
    64
    Minecraft User:
    Adrian
    Yeah I know, I will have to re-write it :(
  7. Adrian
    Offline

    Adrian Active Member

    Joined:
    Jun 26, 2014
    Posts:
    64
    Minecraft User:
    Adrian
    Does anyone know how I would register commands and run different commands for each registered one?
  8. iFootball
    Offline

    iFootball Active Member

    Joined:
    Jun 9, 2014
    Posts:
    84
    Minecraft User:
    iFootball
    I don't completely understand what your saying. Yes you can have 1 command run multiple other commands, if that's what your getting at. And you can have muliple registered commands running multiple other commands. Please provide more info:D. And with this coding even if the player didnt have enough money the player would still recive the rank.:)
  9. Adrian
    Offline

    Adrian Active Member

    Joined:
    Jun 26, 2014
    Posts:
    64
    Minecraft User:
    Adrian
    Thanks :D. Can you show me how I would code it so that player will need money to pass to next rank? Thank You :D
  10. Adrian
    Offline

    Adrian Active Member

    Joined:
    Jun 26, 2014
    Posts:
    64
    Minecraft User:
    Adrian
    I mean like how would I show it in one php document. By document I mean like Sample.php
  11. iFootball
    Offline

    iFootball Active Member

    Joined:
    Jun 9, 2014
    Posts:
    84
    Minecraft User:
    iFootball
    Will do! And I'm not completely sure I can do the only rank up if they have enough money, but I will research and I also will fix a couple errors. I'm new to this to :D.
  12. Adrian
    Offline

    Adrian Active Member

    Joined:
    Jun 26, 2014
    Posts:
    64
    Minecraft User:
    Adrian
    Thank You very much :D I can't find a good tutorial that doesn't show how to make simple plugins. There should be tutorials on more challenging plugins. Thanks again :D :D
  13. RekkuzaRage
    Offline

    RekkuzaRage Active Member

    Joined:
    Apr 15, 2014
    Posts:
    251
    Minecraft User:
    RekkuzaRage
    I am planning to create a similar plugin, but I am still in the progress of learning PHP, also if you are planning to create a complex plugin, you should learn PHP and PocketMine's API. Good Luck. ;)
  14. Adrian
    Offline

    Adrian Active Member

    Joined:
    Jun 26, 2014
    Posts:
    64
    Minecraft User:
    Adrian
    Thank You, I'll go look over there. :D
    RekkuzaRage likes this.
  15. Adrian
    Offline

    Adrian Active Member

    Joined:
    Jun 26, 2014
    Posts:
    64
    Minecraft User:
    Adrian
    Can you send me to a very good tutorial that teaches how to make not a simple plugin but a more complex one.
  16. RekkuzaRage
    Offline

    RekkuzaRage Active Member

    Joined:
    Apr 15, 2014
    Posts:
    251
    Minecraft User:
    RekkuzaRage
    I don't think there is one, but you can look at complex plugins like PocketMoney or SimpleAuth and see how they work. You also need to know PHP & PocketMine's API, if you want to code a complex plugin.
  17. Adrian
    Offline

    Adrian Active Member

    Joined:
    Jun 26, 2014
    Posts:
    64
    Minecraft User:
    Adrian
    I have heard of Sekjun's plugin tutorial with chapters. I don't know the link.
  18. Adrian
    Offline

    Adrian Active Member

    Joined:
    Jun 26, 2014
    Posts:
    64
    Minecraft User:
    Adrian
    Where can I study Pocketmines API?
  19. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    The source code and the documentation.
    RekkuzaRage likes this.
  20. Adrian
    Offline

    Adrian Active Member

    Joined:
    Jun 26, 2014
    Posts:
    64
    Minecraft User:
    Adrian
    May you please give me link? Thank You :D

Share This Page

Advertisement