Skip to content

Commit 02c06d8

Browse files
committed
Fixed build issue
1 parent 5d2f7bb commit 02c06d8

File tree

54 files changed

+55
-55
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+55
-55
lines changed

Plugin/src/main/java/dev/lrxh/neptune/providers/placeholder/PlaceholderImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class PlaceholderImpl extends PlaceholderExpansion {
2424

2525
@Override
2626
public @NotNull String getVersion() {
27-
return plugin.getDescription().getVersion();
27+
return plugin.getPluginMeta().getVersion();
2828
}
2929

3030
@Override
@@ -35,7 +35,7 @@ public boolean canRegister() {
3535
@Override
3636
public String onRequest(OfflinePlayer player, @NotNull String identifier) {
3737
if (player == null) return identifier;
38-
Profile profile = API.getProfile(player);
38+
Profile profile = API.getProfile(player.getUniqueId());
3939
if (profile == null) return identifier;
4040

4141
return PlaceholderManager.get().parse(player, identifier);

Plugin/src/main/java/dev/lrxh/neptune/providers/placeholder/impl/AlivePlaceholder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public boolean match(String string) {
1616

1717
@Override
1818
public String parse(OfflinePlayer player, String string) {
19-
Profile profile = API.getProfile(player);
19+
Profile profile = API.getProfile(player.getUniqueId());
2020
if (profile == null) return string;
2121
Match match = profile.getMatch();
2222
if (match == null) return "";

Plugin/src/main/java/dev/lrxh/neptune/providers/placeholder/impl/ArenaPlaceholder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public boolean match(String string) {
1515

1616
@Override
1717
public String parse(OfflinePlayer player, String string) {
18-
Profile profile = API.getProfile(player);
18+
Profile profile = API.getProfile(player.getUniqueId());
1919
if (profile == null) return string;
2020
Match match = profile.getMatch();
2121
if (profile.getState() != ProfileState.IN_GAME || match == null) return "";

Plugin/src/main/java/dev/lrxh/neptune/providers/placeholder/impl/BedBrokenPlaceholder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public boolean match(String string) {
1818

1919
@Override
2020
public String parse(OfflinePlayer player, String string) {
21-
Profile profile = API.getProfile(player);
21+
Profile profile = API.getProfile(player.getUniqueId());
2222
if (profile == null) return string;
2323
Match match = profile.getMatch();
2424
if (profile.getState() != ProfileState.IN_GAME || match == null || !match.getKit().is(KitRule.BED_WARS))

Plugin/src/main/java/dev/lrxh/neptune/providers/placeholder/impl/BestStreakPlaceholder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public boolean match(String string) {
1414

1515
@Override
1616
public String parse(OfflinePlayer player, String string) {
17-
Profile profile = API.getProfile(player);
17+
Profile profile = API.getProfile(player.getUniqueId());
1818
if (profile == null) return string;
1919
GlobalStats globalStats = profile.getGameData().getGlobalStats();
2020
return String.valueOf(globalStats.getBestStreak());

Plugin/src/main/java/dev/lrxh/neptune/providers/placeholder/impl/BlueAlivePlaceholder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public boolean match(String string) {
1515

1616
@Override
1717
public String parse(OfflinePlayer player, String string) {
18-
Profile profile = API.getProfile(player);
18+
Profile profile = API.getProfile(player.getUniqueId());
1919
if (profile == null) return string;
2020
Match match = profile.getMatch();
2121
if (match == null || !(match instanceof TeamFightMatch teamMatch)) return "";

Plugin/src/main/java/dev/lrxh/neptune/providers/placeholder/impl/BlueBedBrokenPlaceholder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public boolean match(String string) {
1818

1919
@Override
2020
public String parse(OfflinePlayer player, String string) {
21-
Profile profile = API.getProfile(player);
21+
Profile profile = API.getProfile(player.getUniqueId());
2222
if (profile == null) return string;
2323
Match match = profile.getMatch();
2424
if (profile.getState() != ProfileState.IN_GAME || match == null || !match.getKit().is(KitRule.BED_WARS))

Plugin/src/main/java/dev/lrxh/neptune/providers/placeholder/impl/BlueMaxPlaceholder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public boolean match(String string) {
1515

1616
@Override
1717
public String parse(OfflinePlayer player, String string) {
18-
Profile profile = API.getProfile(player);
18+
Profile profile = API.getProfile(player.getUniqueId());
1919
if (profile == null) return string;
2020
Match match = profile.getMatch();
2121
if (match == null || !(match instanceof TeamFightMatch teamMatch)) return "";

Plugin/src/main/java/dev/lrxh/neptune/providers/placeholder/impl/ColorPlaceholder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public boolean match(String string) {
1515

1616
@Override
1717
public String parse(OfflinePlayer player, String string) {
18-
Profile profile = API.getProfile(player);
18+
Profile profile = API.getProfile(player.getUniqueId());
1919
if (profile == null)
2020
return "";
2121
Match match = profile.getMatch();

Plugin/src/main/java/dev/lrxh/neptune/providers/placeholder/impl/ComboPlaceholder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public boolean match(String string) {
1616

1717
@Override
1818
public String parse(OfflinePlayer player, String string) {
19-
Profile profile = API.getProfile(player);
19+
Profile profile = API.getProfile(player.getUniqueId());
2020
if (profile == null) return string;
2121
Match match = profile.getMatch();
2222
if (profile.getState() != ProfileState.IN_GAME || match == null || !(match instanceof SoloFightMatch))

0 commit comments

Comments
 (0)