mirror of
https://github.com/LordBoos/boosCooldowns.git
synced 2024-11-25 03:55:28 +01:00
Disable PlayerPoints by default
This commit is contained in:
parent
c395e315f1
commit
6f366ae078
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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: >
|
||||
|
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user