Skip to content

Commit

Permalink
Fix MagicHeart PAPI placeholder not working in standalone mode
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgH93 committed Aug 15, 2020
1 parent 03ad8a4 commit c53acfa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MarriageMaster-API/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
<goal>jar</goal>
</goals>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
<source>8</source>
<doclint>none</doclint>
</configuration>
</execution>
</executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package at.pcgamingfreaks.MarriageMaster.Bukkit.Placeholder.Replacer;

import at.pcgamingfreaks.MarriageMaster.Bukkit.API.MarriagePlayer;
import at.pcgamingfreaks.MarriageMaster.Bukkit.Database.MarriageData;
import at.pcgamingfreaks.MarriageMaster.Bukkit.MarriageMaster;
import at.pcgamingfreaks.MarriageMaster.Bukkit.Placeholder.PlaceholderName;

Expand All @@ -35,6 +36,6 @@ public MagicHeart(MarriageMaster plugin)
protected @Nullable String replaceMarried(MarriagePlayer player)
{
//noinspection ConstantConditions
return player.getMarriageData().getColor() + valueMarried;
return ((MarriageData) player.getMarriageData()).getMagicHeart() + valueMarried;
}
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<packaging>pom</packaging>

<properties>
<revision>2.2.6</revision>
<revision>2.2.7</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
Expand Down

0 comments on commit c53acfa

Please sign in to comment.