Skip to content

Commit 0847b0f

Browse files
Merge pull request BGHDDevelopment#34 from Yurinann/patch
Fix the expansion will be unregistered on placeholderapi reload
2 parents 8d1430f + b7f257c commit 0847b0f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

addon/src/main/java/com/jaimemartz/playerbalanceraddon/PlayerBalancerPlaceholderExpansion.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,12 @@ public String getAuthor() {
4646
public String getVersion() {
4747
return "bundled";
4848
}
49+
50+
/**
51+
* This is required or else PlaceholderAPI will unregister the Expansion on reload
52+
*/
53+
@Override
54+
public boolean persist() {
55+
return true;
56+
}
4957
}

0 commit comments

Comments
 (0)