Disable PlayerPoints by default

This commit is contained in:
Jakub Kolář 2017-12-13 22:01:29 +01:00
parent c395e315f1
commit 6f366ae078
4 changed files with 14 additions and 12 deletions

View File

@ -424,16 +424,18 @@ public class BoosCoolDown extends JavaPlugin implements Runnable {
}
private boolean hookPlayerPoints() {
Plugin x = pm.getPlugin("PlayerPoints");
if (x != null & x instanceof PlayerPoints) {
RegisteredServiceProvider<PlayerPoints> playerPointsProvider = getServer()
.getServicesManager()
.getRegistration(org.black_ixx.playerpoints.PlayerPoints.class);
if (playerPointsProvider != null) {
playerPoints = playerPointsProvider.getProvider();
log.info("[" + pdfFile.getName() + "]" + " found [PlayerPoints], enabling support.");
if (BoosConfigManager.getPlayerPointsEnabled()) {
Plugin x = pm.getPlugin("PlayerPoints");
if (x != null && x instanceof PlayerPoints) {
RegisteredServiceProvider<PlayerPoints> playerPointsProvider = getServer()
.getServicesManager()
.getRegistration(org.black_ixx.playerpoints.PlayerPoints.class);
if (playerPointsProvider != null) {
playerPoints = playerPointsProvider.getProvider();
log.info("[" + pdfFile.getName() + "]" + " found [PlayerPoints], enabling support.");
}
return playerPoints != null;
}
return playerPoints != null;
}
return false;
}

View File

@ -11,7 +11,7 @@ options:
#should xp costs be enabled?
xp_cost_enabled: true
#should player points prices be enabled?
player_points_prices_enabled: true
player_points_prices_enabled: false
#should limits be enabled?
limits_enabled: true
#do not ever use this if you like your server

View File

@ -1,6 +1,6 @@
name: boosCooldowns
main: cz.boosik.boosCooldown.BoosCoolDown
version: 3.14.1
version: 3.14.2
authors: [LordBoos (boosik)]
softdepend: [Vault, PlayerPoints]
description: >

View File

@ -11,7 +11,7 @@
<packaging>pom</packaging>
<url>http://maven.apache.org</url>
<properties>
<boosCooldowns.version>3.14.1</boosCooldowns.version>
<boosCooldowns.version>3.14.2</boosCooldowns.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<minecraft.version>1.12</minecraft.version>