mirror of
https://github.com/BentoBoxWorld/Warps.git
synced 2024-09-27 14:52:55 +02:00
Do not register top-level commands if config setting isn't true
https://github.com/BentoBoxWorld/Warps/issues/57
This commit is contained in:
parent
a013a1e6a1
commit
c73bf8bad7
2
pom.xml
2
pom.xml
@ -66,7 +66,7 @@
|
||||
<!-- Do not change unless you want different name for local builds. -->
|
||||
<build.number>-LOCAL</build.number>
|
||||
<!-- This allows to change between versions. -->
|
||||
<build.version>1.8.1</build.version>
|
||||
<build.version>1.8.2</build.version>
|
||||
</properties>
|
||||
|
||||
<!-- Profiles will allow to automatically change build version. -->
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user