oops wrong use
This commit is contained in:
parent
ae97269722
commit
0963308b41
@ -82,7 +82,7 @@ index 8a81b14..db8f269 100644
|
||||
+ }
|
||||
+ }
|
||||
+ //end of Govindas code
|
||||
+ // LimeLogin stop
|
||||
+ // LimeLogin end
|
||||
}
|
||||
|
||||
private void setOfflineId(InitialHandler connection, String username) {
|
||||
@ -156,7 +156,7 @@ index 94500cb..b304559 100644
|
||||
+ if (!playerProfile.getName().contains("-")) { playerProfile.setPremium(true); }
|
||||
+ //end of Govindas code
|
||||
+
|
||||
+ // LimeLogin stop
|
||||
+ // LimeLogin end
|
||||
playerProfile.getSaveLock().lock();
|
||||
try {
|
||||
if (playerProfile.isSaved()) {
|
||||
@ -170,7 +170,7 @@ index 94500cb..b304559 100644
|
||||
+ if (!playerProfile.getName().contains("-")) { playerProfile.setPremium(true); }
|
||||
+ //end of Govindas code
|
||||
+
|
||||
+ // LimeLogin stop
|
||||
+ // LimeLogin end
|
||||
try (PreparedStatement saveStmt = con.prepareStatement(INSERT_PROFILE, RETURN_GENERATED_KEYS)) {
|
||||
saveStmt.setString(1, uuid);
|
||||
|
||||
@ -189,7 +189,7 @@ index 7efb157..b417e64 100644
|
||||
+ //storage.save(playerProfile);
|
||||
+ //end of Govindas comment
|
||||
+
|
||||
+ // LimeLogin stop
|
||||
+ // LimeLogin end
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
core.getPlugin().getLog().warn("ERROR ON FORCE LOGIN of {}", getName(player), ex);
|
||||
@ -240,11 +240,11 @@ index ec129a8..5490673 100644
|
||||
+ //if (core.getConfig().get("autoRegister", false) && (authHook == null || !authHook.isRegistered(username))) {
|
||||
+ //end of Govindas comment
|
||||
+
|
||||
+ // LimeLogin stop
|
||||
+ // LimeLogin end
|
||||
+ if (core.getConfig().get("autoRegister", false) && (authHook == null)) {
|
||||
+ // LimeLogin start
|
||||
+ requestPremiumLogin(source, profile, username, false); //Comment: always use false to fix an error XD
|
||||
+ // LimeLogin stop
|
||||
+ // LimeLogin end
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -289,7 +289,7 @@ index 0000000..007083e
|
||||
+ this.cancelled = cancelled;
|
||||
+ }
|
||||
+}
|
||||
+// LimeLogin stop
|
||||
+// LimeLogin end
|
||||
\ No newline at end of file
|
||||
diff --git a/core/src/main/resources/config.yml b/core/src/main/resources/config.yml
|
||||
index ecb1c44..477c026 100644
|
||||
|
Reference in New Issue
Block a user