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. RekkuzaRage
    Offline

    RekkuzaRage Active Member

    Joined:
    Apr 15, 2014
    Posts:
    251
    Minecraft User:
    RekkuzaRage
    It still didn't work. I have database named SimpleAuth.
    [​IMG]
    [​IMG]
    Maybe if you show me a fully configured MySQL config.yml file as an example, it might help.
  2. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    first, you should be sure that both your server and mysql is hosted on under one machine otherwise, you should google around how to whitelist your server domain in remote mysql database stuff.

    if that is not your problem, here are some posibilities:

    - Your mysql details you put in your config.yml is incorrect
    - Your MySQL database is hosted on different machine
    - In connection with point number two, you forgot to whitelist your server from accessing your MySQL database.

    Lastly, please use PhpMyadmin or other database manager for beter convenience.
    64FF00 likes this.
  3. Dutok
    Offline

    Dutok Notable Member Plugin Developer

    Joined:
    Jun 20, 2014
    Posts:
    371
    Plugins:
    3
    Minecraft User:
    Dutok
    What error is it giving you? That would be helpful.
    64FF00 likes this.
  4. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    his not trying to be specific. he should explain how he did everything so we could correct his problem.
    its like baking a cake without a flour.
    64FF00 and Dutok like this.
  5. RekkuzaRage
    Offline

    RekkuzaRage Active Member

    Joined:
    Apr 15, 2014
    Posts:
    251
    Minecraft User:
    RekkuzaRage
    @iJoshuaHD

    I finally managed to install LAMP on Ubuntu, which is needed to run PHPMyAdmin. It runs perfectly, I even made a database named "simpleauth" just for SimpleAuth.
    [​IMG]
    When I run the server, the same error pops on... I don't think I did anything wrong.
    Code:
    2:18:34 [CRITICAL] [SimpleAuth] Invalid MySQL settings
    Here is the current configuration file.
    Code:
    # Default config for SimpleAuth plugin
    
    #Sets the data provider (yaml, sqlite3, mysql, none).
    #Only use none when there is another plugin that will integrate its dataProvider with SimpleAuth
    #Be aware that data is not automatically moved between data providers.
    dataProvider: mysql
    
    For MySQL:
    dataProviderSettings:
     host: "localhost"
     port: 3306
     user: "root"
     password: "*********"
     database: "simpleauth"
    dataProviderSettings: []
    
    #If enabled, existing logged-in accounts won't be kicked if a new player joins with the same name
    forceSingleSession: true
    
    #Sets the minimum amount of characters to be used when registering a new account
    minPasswordLength: 6
    
    #If enabled, accounts that are using the same IP when logging in again will be automatically authenticated
    authenticateByLastIP: false
    
    #If enabled, will set all the permissions for simleauth.command.register to false
    disableRegister: false
    
    #If enabled, will set all the permissions for simleauth.command.login to false
    disableLogin: false
    
    #Number of seconds to wait for a player to be authenticated. If false, disables the timeout
    #TODO
    authenticateTimeout: 120
    If you need more details, please reply.
  6. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    remove: dataProviderSettings [ ]

    and be sure your server is running on the same machine with your mysql server. otherwise, google around how to whitelist your server to allow connections to your mysql database.
    64FF00 likes this.
  7. RekkuzaRage
    Offline

    RekkuzaRage Active Member

    Joined:
    Apr 15, 2014
    Posts:
    251
    Minecraft User:
    RekkuzaRage
    MySQL is run on the same machine/server. Also a new problem popped up when I removed dataProviderSettings: []
    Code:
    02:28:52 [ERROR] An E_WARNING error happened: "mysqli::mysqli(): (HY000/2002): No such file or directory" in "/SimpleAuth_v1.2.0.phar/src/SimpleAuth/provider/MySQLDataProvider" at line 43
    02:28:52 [CRITICAL] [SimpleAuth] Couldn't connect to MySQL: No such file or directory
    64FF00 likes this.
  8. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    change your host to 120.0.0.1
    idk why your problem persist. Btw, i use XAMPP in my localhost. in my server, well, i just installed mysql and im solved
  9. RekkuzaRage
    Offline

    RekkuzaRage Active Member

    Joined:
    Apr 15, 2014
    Posts:
    251
    Minecraft User:
    RekkuzaRage
    Same problem. I wonder what the problem is......
  10. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    if u want i can help you tomorrow after my last major exam :)
    64FF00 and RekkuzaRage like this.
  11. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    oh $$$$

    empty your password and see what happens.
  12. RekkuzaRage
    Offline

    RekkuzaRage Active Member

    Joined:
    Apr 15, 2014
    Posts:
    251
    Minecraft User:
    RekkuzaRage
    Thanks, do you want me to start a private conversion so you can help me?
  13. DestroyerofDeq
    Offline

    DestroyerofDeq Active Member

    Joined:
    May 17, 2014
    Posts:
    92
    Minecraft User:
    DestroyerofDeq
    how to make it where a new player will either get spammed with please login/register or beable to hear broadcast plugin/console
  14. Dutok
    Offline

    Dutok Notable Member Plugin Developer

    Joined:
    Jun 20, 2014
    Posts:
    371
    Plugins:
    3
    Minecraft User:
    Dutok
    If they try to chat they should be sent the login message.
    64FF00 and LDX like this.
  15. DestroyerofDeq
    Offline

    DestroyerofDeq Active Member

    Joined:
    May 17, 2014
    Posts:
    92
    Minecraft User:
    DestroyerofDeq
    well it doesnt
  16. DovahDoVolom
    Offline

    DovahDoVolom Active Member

    Joined:
    Nov 29, 2013
    Posts:
    76
    Minecraft User:
    DovahDoVolom
    I have been haveing a problem that has been keeping me from REALLY kicking off my server. When I install the plugin with none of the SQL stuff every time a player joins it displays the unregister prompt. I can type /register and it will do as it should normally and when I relog it shows the unregister prompt but I can still /login. Is there any fix to this problem?
  17. Dutok
    Offline

    Dutok Notable Member Plugin Developer

    Joined:
    Jun 20, 2014
    Posts:
    371
    Plugins:
    3
    Minecraft User:
    Dutok
    The unregister prompt? What do you mean?
    LDX likes this.
  18. DovahDoVolom
    Offline

    DovahDoVolom Active Member

    Joined:
    Nov 29, 2013
    Posts:
    76
    Minecraft User:
    DovahDoVolom
    I mean that every time I join registered or unregistered is says "You are not authenticated anymore." In chat
  19. Dutok
    Offline

    Dutok Notable Member Plugin Developer

    Joined:
    Jun 20, 2014
    Posts:
    371
    Plugins:
    3
    Minecraft User:
    Dutok
    Yeah, that's a bug with SimpleAuth. It basically means that they need to authenticate again, but it's supposed to give the 'login again prompt'. I sent a pull request but Shogi declined it.
  20. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    i didnt know you had a pull request xD i just replaced that message with the one that is present on SimpleAuth where it shows /login or /register occasionally.
    64FF00 likes this.

Share This Page

Advertisement