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

Solved How to run php code

Discussion in 'Help' started by mmm545, May 1, 2020.

  1. mmm545

    mmm545 Baby Zombie

    Messages:
    152
    GitHub:
    mmm545
    So i saw this thread talking about how to list all your server permissions:
    https://forums.pocketmine.net/threads/list-all-your-permissions.14983/
    and he said to run this code, i don't know anything about php. so how do i run the code, where do i need to run it. i thought you paste this in the console but nope didn't work. lol
    So if anyone can help me it would be appreciated.
    Thanks
     
  2. ethaniccc

    ethaniccc Baby Zombie

    Messages:
    189
    GitHub:
    ethaniccc
    You have to put the code in a plugin for this to work
     
    mmm545 likes this.
  3. mmm545

    mmm545 Baby Zombie

    Messages:
    152
    GitHub:
    mmm545
    how can i do it?
     
  4. ethaniccc

    ethaniccc Baby Zombie

    Messages:
    189
    GitHub:
    ethaniccc
    You have to make a plugin, and then put the code inside of the plugin. If you want, I'll do a request where you run a command and it returns all of the permissions on your server
     
  5. mmm545

    mmm545 Baby Zombie

    Messages:
    152
    GitHub:
    mmm545
    do you mean that you will make the plugin?
     
  6. ethaniccc

    ethaniccc Baby Zombie

    Messages:
    189
    GitHub:
    ethaniccc
    yep
     
  7. mmm545

    mmm545 Baby Zombie

    Messages:
    152
    GitHub:
    mmm545
    i mean.... yeah that would be nice from you.
     
  8. mmm545

    mmm545 Baby Zombie

    Messages:
    152
    GitHub:
    mmm545
    i am running pocketmine 3.11.5 bedrock edition v1.14.0
     
  9. ethaniccc

    ethaniccc Baby Zombie

    Messages:
    189
    GitHub:
    ethaniccc
    HimbeersaftLP and mmm545 like this.
  10. mmm545

    mmm545 Baby Zombie

    Messages:
    152
    GitHub:
    mmm545
  11. ethaniccc

    ethaniccc Baby Zombie

    Messages:
    189
    GitHub:
    ethaniccc
    Honestly, when I started, all the tutorials I ever watched on YouTube never made sense to me since the coder never really explained anything. I once bought an Enchant GUI plugin and I decided I didn't want to waste any more of my money, so I took it apart and tried to understand why and how it worked. After I did that, I made my first plugin, KitGUI. Looking back, it was a really poorly coded plugin, but it felt like a huge success to me. If you want to learn PHP, go to https://www.php.net/ ! Pocketmine offers some example plugins to how the API works: https://github.com/pmmp/PocketMine-MP/tree/stable/tests/plugins

    I really suck at explaining things, but if you want to start, ask this forum - I know they'll help you out ;)
    Also sorry for the long life story lol
     
  12. mmm545

    mmm545 Baby Zombie

    Messages:
    152
    GitHub:
    mmm545
    It's time for me to take apart your plugin hehe.
    Also btw I don't ask these questions but are you really 14y old.
    I'm not 16 I'm 13 but i felt pmmp wouldn't let me make an account. Btw thanks for helping me to run the code
     
    ethaniccc likes this.
  13. ethaniccc

    ethaniccc Baby Zombie

    Messages:
    189
    GitHub:
    ethaniccc
    No problem!
    Yep, I turned fourteen only a few weeks ago!
     
  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.