mirror of
https://github.com/BentoBoxWorld/CaveBlock.git
synced 2025-01-09 18:57:47 +01:00
Startup (#21)
* Fixed for BentoBox 1.5.0 API Enables dedicated caveblock world operation * Added island near command. * Update pom.xml
This commit is contained in:
parent
418eb7bef2
commit
a119181b46
4
pom.xml
4
pom.xml
@ -46,7 +46,7 @@
|
||||
<java.version>1.8</java.version>
|
||||
<!-- More visible way how to change dependency versions -->
|
||||
<spigot.version>1.13.2-R0.1-SNAPSHOT</spigot.version>
|
||||
<bentobox.version>1.4.0</bentobox.version>
|
||||
<bentobox.version>1.5.0</bentobox.version>
|
||||
<!-- Revision variable removes warning about dynamic version -->
|
||||
<revision>${build.version}-SNAPSHOT</revision>
|
||||
<!-- This allows to change between versions and snapshots. -->
|
||||
@ -226,4 +226,4 @@
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
</project>
|
||||
|
@ -32,6 +32,12 @@ public class CaveBlock extends GameModeAddon
|
||||
this.saveDefaultConfig();
|
||||
this.loadSettings();
|
||||
this.saveWorldSettings();
|
||||
|
||||
this.chunkGenerator = new ChunkGeneratorWorld(this);
|
||||
|
||||
this.playerCommand = new IslandCommand(this);
|
||||
this.adminCommand = new AdminCommand(this);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -41,8 +47,6 @@ public class CaveBlock extends GameModeAddon
|
||||
@Override
|
||||
public void onEnable()
|
||||
{
|
||||
this.playerCommand = new IslandCommand(this);
|
||||
this.adminCommand = new AdminCommand(this);
|
||||
|
||||
// Register flags
|
||||
CaveBlock.ALTERNATIVE_TELEPORT_FLAG.addGameModeAddon(this);
|
||||
@ -113,8 +117,6 @@ public class CaveBlock extends GameModeAddon
|
||||
this.getLogger().info("Creating CaveBlock world ...");
|
||||
}
|
||||
|
||||
this.chunkGenerator = new ChunkGeneratorWorld(this);
|
||||
|
||||
// Create the world if it does not exist
|
||||
this.islandWorld = WorldCreator.name(worldName).
|
||||
type(WorldType.FLAT).
|
||||
@ -249,7 +251,7 @@ public class CaveBlock extends GameModeAddon
|
||||
* into void and this flag is enabled, then he will be teleported to different world.
|
||||
*/
|
||||
public final static Flag ALTERNATIVE_TELEPORT_FLAG =
|
||||
new Flag.Builder("ALTERNATIVE_TELEPORT_FLAG", Material.ENDER_PEARL).
|
||||
new Flag.Builder("ALTERNATIVE_TELEPORT_FLAG", Material.ENDER_PEARL).
|
||||
type(Flag.Type.WORLD_SETTING).
|
||||
defaultSetting(false).
|
||||
build();
|
||||
@ -260,7 +262,7 @@ public class CaveBlock extends GameModeAddon
|
||||
* top of the world.
|
||||
*/
|
||||
public final static Flag SKY_WALKER_FLAG =
|
||||
new Flag.Builder("SKY_WALKER_FLAG", Material.FEATHER).
|
||||
new Flag.Builder("SKY_WALKER_FLAG", Material.FEATHER).
|
||||
type(Flag.Type.WORLD_SETTING).
|
||||
defaultSetting(false).
|
||||
build();
|
||||
|
@ -16,8 +16,8 @@ public class IslandCommand extends CompositeCommand {
|
||||
|
||||
public IslandCommand(CaveBlock addon) {
|
||||
super(addon,
|
||||
addon.getSettings().getIslandCommand().split(" ")[0],
|
||||
addon.getSettings().getIslandCommand().split(" "));
|
||||
addon.getSettings().getIslandCommand().split(" ")[0],
|
||||
addon.getSettings().getIslandCommand().split(" "));
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
@ -44,6 +44,7 @@ public class IslandCommand extends CompositeCommand {
|
||||
new IslandBanCommand(this);
|
||||
new IslandUnbanCommand(this);
|
||||
new IslandBanlistCommand(this);
|
||||
new IslandNearCommand(this);
|
||||
|
||||
// Expel command
|
||||
new IslandExpelCommand(this);
|
||||
|
Loading…
Reference in New Issue
Block a user