The launcher will need a method to see if a user exists in the database. Return type should be boolean. I will use this to see if a username is already taken before I attempt to create a new user.
Any System.out.println() should likely be changed to use the logger. PiCasino.LOGGER.info(message) is all you need to do. Alternatively, you can log the messages as warning and severe if they are error messages.
Just a few things with the database:
System.out.println()
should likely be changed to use the logger.PiCasino.LOGGER.info(message)
is all you need to do. Alternatively, you can log the messages aswarning
andsevere
if they are error messages.