From c73bf8bad74e16ecb5b4d4b435464d8e7d8d93b3 Mon Sep 17 00:00:00 2001 From: tastybento Date: Thu, 7 Nov 2019 15:52:49 -0800 Subject: [PATCH 1/2] Do not register top-level commands if config setting isn't true https://github.com/BentoBoxWorld/Warps/issues/57 --- pom.xml | 2 +- src/main/java/world/bentobox/warps/Warp.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index f9d2ba1..afb91bf 100644 --- a/pom.xml +++ b/pom.xml @@ -66,7 +66,7 @@ -LOCAL - 1.8.1 + 1.8.2 diff --git a/src/main/java/world/bentobox/warps/Warp.java b/src/main/java/world/bentobox/warps/Warp.java index 482fe79..225f96c 100644 --- a/src/main/java/world/bentobox/warps/Warp.java +++ b/src/main/java/world/bentobox/warps/Warp.java @@ -83,7 +83,7 @@ public class Warp extends Addon { // Save default config.yml this.saveDefaultConfig(); // Load the plugin's config - if (this.loadSettings()) { + if (this.loadSettings() && settings.isAllowInOtherWorlds()) { // Load the master warp and warps command new WarpCommand(this); new WarpsCommand(this); From eb0930757c52f297d0aad86986fb0ba2da56e0fa Mon Sep 17 00:00:00 2001 From: tastybento Date: Thu, 7 Nov 2019 16:52:39 -0800 Subject: [PATCH 2/2] Removed sonar_token reference from travis.yml --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b76061a..9c5b6e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,8 +3,7 @@ sudo: false addons: sonarcloud: organization: "bentobox-world" - token: - secure: $SONAR_TOKEN + jdk: - openjdk8 - openjdk11