mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 03:34:43 +02:00
Get rid of all the deprecated instances of Users.getProfile()
This commit is contained in:
@ -25,7 +25,7 @@ public final class ChimaeraWing {
|
||||
return;
|
||||
}
|
||||
|
||||
PlayerProfile profile = Users.getProfile(player);
|
||||
PlayerProfile profile = Users.getPlayer(player).getProfile();
|
||||
Block block = player.getLocation().getBlock();
|
||||
int amount = inHand.getAmount();
|
||||
long recentlyHurt = profile.getRecentlyHurt();
|
||||
|
@ -20,7 +20,7 @@ public final class Hardcore {
|
||||
return;
|
||||
}
|
||||
|
||||
PlayerProfile playerProfile = Users.getProfile(player);
|
||||
PlayerProfile playerProfile = Users.getPlayer(player).getProfile();
|
||||
int totalLost = 0;
|
||||
|
||||
for (SkillType skillType : SkillType.values()) {
|
||||
@ -49,8 +49,8 @@ public final class Hardcore {
|
||||
return;
|
||||
}
|
||||
|
||||
PlayerProfile killerProfile = Users.getProfile(killer);
|
||||
PlayerProfile victimProfile = Users.getProfile(victim);
|
||||
PlayerProfile killerProfile = Users.getPlayer(killer).getProfile();
|
||||
PlayerProfile victimProfile = Users.getPlayer(victim).getProfile();
|
||||
int totalStolen = 0;
|
||||
|
||||
for (SkillType skillType : SkillType.values()) {
|
||||
|
Reference in New Issue
Block a user