mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-01 08:09:39 +01:00
Merge branch 'master' of github.com:mcMMO-Dev/mcmmo into configurable
This commit is contained in:
commit
47bcd1223b
@ -405,7 +405,7 @@ public final class SQLDatabaseManager implements DatabaseManager {
|
|||||||
for (PrimarySkillType primarySkillType : pluginRef.getSkillTools().NON_CHILD_SKILLS) {
|
for (PrimarySkillType primarySkillType : pluginRef.getSkillTools().NON_CHILD_SKILLS) {
|
||||||
String skillName = primarySkillType.name().toLowerCase(Locale.ENGLISH);
|
String skillName = primarySkillType.name().toLowerCase(Locale.ENGLISH);
|
||||||
// Get count of all users with higher skill level than player
|
// Get count of all users with higher skill level than player
|
||||||
String sql = "SELECT COUNT(*) AS rank FROM " + tablePrefix + "users JOIN " + tablePrefix + "skills ON user_id = id WHERE " + skillName + " > 0 " +
|
String sql = "SELECT COUNT(*) AS 'rank' FROM " + tablePrefix + "users JOIN " + tablePrefix + "skills ON user_id = id WHERE " + skillName + " > 0 " +
|
||||||
"AND " + skillName + " > (SELECT " + skillName + " FROM " + tablePrefix + "users JOIN " + tablePrefix + "skills ON user_id = id " +
|
"AND " + skillName + " > (SELECT " + skillName + " FROM " + tablePrefix + "users JOIN " + tablePrefix + "skills ON user_id = id " +
|
||||||
"WHERE user = ?)";
|
"WHERE user = ?)";
|
||||||
|
|
||||||
@ -439,7 +439,7 @@ public final class SQLDatabaseManager implements DatabaseManager {
|
|||||||
statement.close();
|
statement.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
String sql = "SELECT COUNT(*) AS rank FROM " + tablePrefix + "users JOIN " + tablePrefix + "skills ON user_id = id " +
|
String sql = "SELECT COUNT(*) AS 'rank' FROM " + tablePrefix + "users JOIN " + tablePrefix + "skills ON user_id = id " +
|
||||||
"WHERE " + ALL_QUERY_VERSION + " > 0 " +
|
"WHERE " + ALL_QUERY_VERSION + " > 0 " +
|
||||||
"AND " + ALL_QUERY_VERSION + " > " +
|
"AND " + ALL_QUERY_VERSION + " > " +
|
||||||
"(SELECT " + ALL_QUERY_VERSION + " " +
|
"(SELECT " + ALL_QUERY_VERSION + " " +
|
||||||
|
Loading…
Reference in New Issue
Block a user