mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 22:26:46 +01:00
Remove deprecated PlayerProfile constructor
This commit is contained in:
parent
d2028321d4
commit
143714c9eb
@ -530,11 +530,6 @@ public final class FlatFileDatabaseManager implements DatabaseManager {
|
||||
|
||||
// Didn't find the player, create a new one
|
||||
if (create) {
|
||||
if (uuid == null) {
|
||||
newUser(playerName, uuid);
|
||||
return new PlayerProfile(pluginRef, playerName, true);
|
||||
}
|
||||
|
||||
newUser(playerName, uuid);
|
||||
return new PlayerProfile(pluginRef, playerName, uuid, true);
|
||||
}
|
||||
@ -554,10 +549,6 @@ public final class FlatFileDatabaseManager implements DatabaseManager {
|
||||
}
|
||||
|
||||
// Return unloaded profile
|
||||
if (uuid == null) {
|
||||
return new PlayerProfile(pluginRef, playerName);
|
||||
}
|
||||
|
||||
return new PlayerProfile(pluginRef, playerName, uuid);
|
||||
}
|
||||
|
||||
|
@ -564,10 +564,10 @@ public final class SQLDatabaseManager implements DatabaseManager {
|
||||
id = newUser(connection, playerName, uuid);
|
||||
create = false;
|
||||
if (id == -1) {
|
||||
return new PlayerProfile(pluginRef, playerName, false);
|
||||
return new PlayerProfile(pluginRef, playerName, uuid, false);
|
||||
}
|
||||
} else {
|
||||
return new PlayerProfile(pluginRef, playerName, false);
|
||||
return new PlayerProfile(pluginRef, playerName, uuid,false);
|
||||
}
|
||||
}
|
||||
// There is such a user
|
||||
@ -634,7 +634,7 @@ public final class SQLDatabaseManager implements DatabaseManager {
|
||||
|
||||
// return unloaded profile
|
||||
if (!retry) {
|
||||
return new PlayerProfile(pluginRef, playerName, false);
|
||||
return new PlayerProfile(pluginRef, playerName, uuid, false);
|
||||
}
|
||||
|
||||
// Retry, and abort on re-failure
|
||||
|
@ -60,12 +60,6 @@ public class PlayerProfile {
|
||||
uniquePlayerData.put(UniqueDataType.CHIMAERA_WING_DATS, 0); //Chimaera wing
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public PlayerProfile(mcMMO pluginRef, String playerName, boolean isLoaded) {
|
||||
this(pluginRef, playerName);
|
||||
this.loaded = isLoaded;
|
||||
}
|
||||
|
||||
public PlayerProfile(mcMMO pluginRef, String playerName, UUID uuid, boolean isLoaded) {
|
||||
this(pluginRef, playerName, uuid);
|
||||
this.loaded = isLoaded;
|
||||
|
@ -75,7 +75,7 @@ public final class CommandTools {
|
||||
return true;
|
||||
}
|
||||
|
||||
PlayerProfile profile = new PlayerProfile(pluginRef, playerName, false);
|
||||
PlayerProfile profile = new PlayerProfile(pluginRef, playerName, null, false);
|
||||
|
||||
if (unloadedProfile(sender, profile)) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user