|
@@ -61,6 +61,8 @@ public class MissileWars extends JavaPlugin {
|
|
|
|
|
|
@Getter private Paster schematicPaster;
|
|
|
|
|
|
+ private boolean isPapiInstalled;
|
|
|
+
|
|
|
public MissileWars() {
|
|
|
instance = this;
|
|
|
}
|
|
@@ -131,7 +133,11 @@ public class MissileWars extends JavaPlugin {
|
|
|
private void initialPapiSupport() {
|
|
|
if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
|
|
|
new MissileWarsPlaceholder(this).register();
|
|
|
- Logger.NORMAL.log("The PlaceholderAPI is installed. New placeholders are provided by MissileWars.");
|
|
|
+ isPapiInstalled = true;
|
|
|
+ Logger.NORMAL.log("PlaceholderAPI is installed. New placeholders are provided by MissileWars.");
|
|
|
+ } else {
|
|
|
+ isPapiInstalled = false;
|
|
|
+ Logger.NORMAL.log("PlaceholderAPI is not installed. Placeholders arent working for now.");
|
|
|
}
|
|
|
}
|
|
|
|