1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Using config.yml to set command on plugin.

Discussion in 'Facepalm' started by iTzAnTiFTW, Aug 16, 2017.

  1. iTzAnTiFTW

    iTzAnTiFTW Spider Jockey

    Messages:
    36
    GitHub:
    itzantiftw
    How can you name a command using "case" from a name given in config.yml.

    Example:

    //config.yml

    ClassSet: "Appleseed"
    items:
    264:0:32

    ---

    How can I make Appleseed the command from the config.yml?

    Full Command: /myplugin <appleseed>

    (Also, again, sorry if this is a dumb question.)
     
    Last edited: Aug 16, 2017
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
  3. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
  4. iTzAnTiFTW

    iTzAnTiFTW Spider Jockey

    Messages:
    36
    GitHub:
    itzantiftw
  5. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Well now you edited your post and made me seem like a stupid person who read your post halfway.

    Anyway, let me quote you this time.
    Which one do you not know how to use? Naming a command or using switch?
     
    SOFe likes this.
  6. iTzAnTiFTW

    iTzAnTiFTW Spider Jockey

    Messages:
    36
    GitHub:
    itzantiftw
    Using switch. With the config.yml
     
  7. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
  8. iTzAnTiFTW

    iTzAnTiFTW Spider Jockey

    Messages:
    36
    GitHub:
    itzantiftw
  9. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Perhaps you should learn about the basics of PHP variables first.
    This question has nothing to do with PocketMine.
     
  10. iTzAnTiFTW

    iTzAnTiFTW Spider Jockey

    Messages:
    36
    GitHub:
    itzantiftw
    I know im having a brain meltdown right now and cant think.
     
  11. iTzAnTiFTW

    iTzAnTiFTW Spider Jockey

    Messages:
    36
    GitHub:
    itzantiftw
    Thanks for facepalming I would of did the same if I could
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.