So this is how it would be registered.
public static final UserConfig USER_CONFIG;
static {
File file = new File("configuration/" + PLUGIN_ID + "/UserConfig.conf");
if(!file.exists()){
try{
file.mkdirs();
file.createNewFile();
}catch(IOException e){
e.printStackTrace();
}
}
USER_CONFIG = new UserConfig(file);
}
@Listener
public void onPlayerJoin(ClientConnectionEvent.Join event) {
USER_CONFIG.registerUser(p.getUniquieId(), p.getName(), "discord id", "code", "classd");
USER_CONFIG.save();
}