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

Official SimpleAuth v1.7.1

Prevents people to impersonate an account, requiring registration and login when connecting.

  1. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    The host should be localhost or 127.0.0.1 or your external IP address. All of then should work, although it seems to me that localhost/127.0.0.1 is always faster.

    Connect to your database via a normal MySQL client (e.g. running mysql command on the VPS), and send query "CREATE SCHEMA SimpleAuth;". Then start the server. SimpleAuth will setup the tables in your new schema.
  2. Andrey Nazarchuk
    Offline

    Andrey Nazarchuk Active Member

    Joined:
    Dec 30, 2013
    Posts:
    332
    Minecraft User:
    digita1eclipse
    @PEMapModder It is not hosted on the same server as my PM server, I will try the CREATE SCHEMA thing.
    Thank you!
  3. Andrey Nazarchuk
    Offline

    Andrey Nazarchuk Active Member

    Joined:
    Dec 30, 2013
    Posts:
    332
    Minecraft User:
    digita1eclipse
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Now run your server again if you have created the SimpleAuth schema.
    Put your VPS external address for host.

    BTW, SimpleAuth doesn't use asynchronous MySQL querying, so I recommend you to have both servers on the same host, or at least the same network.
  5. Andrey Nazarchuk
    Offline

    Andrey Nazarchuk Active Member

    Joined:
    Dec 30, 2013
    Posts:
    332
    Minecraft User:
    digita1eclipse
    OK I will try running on the same host
  6. TrueBaccaAli
    Offline

    TrueBaccaAli Active Member

    Joined:
    Apr 6, 2015
    Posts:
    71
    If you have PurePerms installed, enter these 2 commands in the PocketMine console, and do it with every other (default) group out there (Owner, Admin, OP and Guest (covered already)). PurePerms is causing the problem.
    Code:
    setgperm Guest simpleauth.command.register world
    setgperm Guest simpleauth.command.login world
  7. Andrey Nazarchuk
    Offline

    Andrey Nazarchuk Active Member

    Joined:
    Dec 30, 2013
    Posts:
    332
    Minecraft User:
    digita1eclipse
    Ok, I am Extremely confused now, sorry.

    So Is this correct?:

    1. Install MySQL Server on the SAME VPS as PM server
    2. In MySQL Server config (my.cnf), allow connection with the IP's of all my servers, or just every IP?
    3. Set the simpleauth config to point to localhost
    4. For other servers, set the SimpleAuth config to point to my VPS that runs MySQL Server?

    For max_connections (in my.cnf), I only need as many as I have servers?

    About the "asynchronous MySQL querying", is there a way to make it synchronize every time a new player registers?

    Thank you for being patient :)
    Last edited: Apr 14, 2015
  8. Andrey Nazarchuk
    Offline

    Andrey Nazarchuk Active Member

    Joined:
    Dec 30, 2013
    Posts:
    332
    Minecraft User:
    digita1eclipse
    @PEMapModder still does not work, if I pm you my login credentials for my VPS will you do it for me?
  9. Bublz_654
    Offline

    Bublz_654 Active Member

    Joined:
    Dec 31, 2014
    Posts:
    120
    I did this on my server and people are able to register but not able to login :(
  10. TrueBaccaAli
    Offline

    TrueBaccaAli Active Member

    Joined:
    Apr 6, 2015
    Posts:
    71
    Try these.

    De-op everyone (must do this before reinstalling SimpleAuth) and delete the SimpleAuth .phar and folder in the Plugins folder and reinstall SimpleAuth by downloading it again and placing the .phar in the Plugins folder, now start up the server. Now enter all of these commands in to the console.

    Code:
    setgperm Guest simpleauth.command.register world
    setgperm Guest simpleauth.command.login world
    setgperm OP simpleauth.command.register world
    setgperm OP simpleauth.command.login world
    setgperm Admin simpleauth.command.register world
    setgperm Admin simpleauth.command.login world
    setgperm Owner simpleauth.command.register world
    setgperm Owner simpleauth.command.login world
    
    If that does not work do these:

    Code:
    setgperm Guest simpleauth.command.register
    setgperm Guest simpleauth.command.login 
    setgperm OP simpleauth.command.register 
    setgperm OP simpleauth.command.login 
    setgperm Admin simpleauth.command.register 
    setgperm Admin simpleauth.command.login 
    setgperm Owner simpleauth.command.register 
    setgperm Owner simpleauth.command.login
    
    If that still does not work try these commands

    Code:
    setgperm Guest simpleauth.command.register
    setgperm Guest simpleauth.command.login
    setgperm Guest simpleauth.command
    setgperm Guest simpleauth
    
  11. Bublz_654
    Offline

    Bublz_654 Active Member

    Joined:
    Dec 31, 2014
    Posts:
    120
    I have done all of above but it still doesn't work :(
  12. TrueBaccaAli
    Offline

    TrueBaccaAli Active Member

    Joined:
    Apr 6, 2015
    Posts:
    71
    Have you got PocketDuckConsole? I can help via that. If not enable RCON in server properties and PM the password and I'll see what I can do. Don't worry I won't fuck up your server or anything.
  13. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    1. Yes
    2. Just allow connection from '%' (all IPs). I don't see why you need to limit the sources of connection.
    3. Yes
    4. Yes.

    You may want to allow things like web servers or your own MySQL client at home connecting to them, so just set it to a larger number, like default, or like, plus 10.

    No. That means SimpleAuth blocks the main thread when querying data, so if SimpleAuth takes a long time to query, it may lag the server.
  14. TrueBaccaAli
    Offline

    TrueBaccaAli Active Member

    Joined:
    Apr 6, 2015
    Posts:
    71
  15. Andrey Nazarchuk
    Offline

    Andrey Nazarchuk Active Member

    Joined:
    Dec 30, 2013
    Posts:
    332
    Minecraft User:
    digita1eclipse
    Thanks for replying, it did not work. :(
    I looked into the simpleauth code, and it looks like it will say invalid settings if even one thing is changed from default in the config.
    Can I PM you my VPS connection info so you can do it for me?
    Thanks
  16. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    No. Follow my instructions. And tell me what happens.
  17. gidoBOSSftw5731
    Offline

    gidoBOSSftw5731 New Member

    Joined:
    Apr 1, 2015
    Posts:
    9
    Minecraft User:
    gido5731
    Hey is it a new update or something that is making it when I do /login /register it says you don't have permission to do the login command, I don't even understand why that's a thing...
  18. gidoBOSSftw5731
    Offline

    gidoBOSSftw5731 New Member

    Joined:
    Apr 1, 2015
    Posts:
    9
    Minecraft User:
    gido5731
    Can someone help me? Pls
  19. mariusbjornor
    Offline

    mariusbjornor Active Member

    Joined:
    Jan 6, 2015
    Posts:
    109
    Minecraft User:
    MariusB
    Hey @shoghicp
    Is it possible to add /newpass command in next update?
    And maybe make it a little better so that after people have registered, and when they join next time they just have to type password instead of /login <password>

    that would be awesome :D

    Best regards,
    MariusB
  20. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Mind pasting your config file here? (you can replace the password and other credentials with "****")

Share This Page

Advertisement