mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-02-16 19:51:27 +01:00
Merge branch 'development'
This commit is contained in:
commit
c98d678183
2
pom.xml
2
pom.xml
@ -5,7 +5,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.songoda</groupId>
|
<groupId>com.songoda</groupId>
|
||||||
<artifactId>skyblock</artifactId>
|
<artifactId>skyblock</artifactId>
|
||||||
<version>2.3.18</version>
|
<version>2.3.19</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
@ -59,6 +59,13 @@ public class InformationCommand extends SubCommand {
|
|||||||
|
|
||||||
PlayerData playerData = plugin.getPlayerDataManager().getPlayerData(player);
|
PlayerData playerData = plugin.getPlayerDataManager().getPlayerData(player);
|
||||||
|
|
||||||
|
if (playerData.isPreview()) {
|
||||||
|
messageManager.sendMessage(player,
|
||||||
|
configLoad.getString("Command.Island.Information.Previewing.Message"));
|
||||||
|
soundManager.playSound(player, CompatibleSound.BLOCK_ANVIL_LAND.getSound(), 1.0F, 1.0F);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (islandOwnerUUID == null) {
|
if (islandOwnerUUID == null) {
|
||||||
if (islandManager.getIsland(player) == null) {
|
if (islandManager.getIsland(player) == null) {
|
||||||
messageManager.sendMessage(player,
|
messageManager.sendMessage(player,
|
||||||
|
@ -580,10 +580,10 @@ public class IslandManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO - Find a way to delete also offline players
|
// TODO - Find a way to delete also offline players
|
||||||
if (configLoad.getBoolean("Island.Deletion.ClearInventory", false)){
|
if (configLoad.getBoolean("Island.Deletion.ClearInventory", false) && !playerData.isPreview()) {
|
||||||
player.getInventory().clear();
|
player.getInventory().clear();
|
||||||
}
|
}
|
||||||
if (configLoad.getBoolean("Island.Deletion.ClearEnderChest", false)){
|
if (configLoad.getBoolean("Island.Deletion.ClearEnderChest", false) && !playerData.isPreview()) {
|
||||||
player.getEnderChest().clear();
|
player.getEnderChest().clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,20 +58,19 @@ public class WorldManager {
|
|||||||
if (normalWorld == null) {
|
if (normalWorld == null) {
|
||||||
Bukkit.getServer().getLogger().log(Level.INFO, "SkyBlock | Info: Generating Normal World '" + normalWorldName + "'.");
|
Bukkit.getServer().getLogger().log(Level.INFO, "SkyBlock | Info: Generating Normal World '" + normalWorldName + "'.");
|
||||||
normalWorld = WorldCreator.name(normalWorldName).type(WorldType.FLAT).environment(normalWorldEnvironment).generator(normalWorldWorldGenerator).createWorld();
|
normalWorld = WorldCreator.name(normalWorldName).type(WorldType.FLAT).environment(normalWorldEnvironment).generator(normalWorldWorldGenerator).createWorld();
|
||||||
Bukkit.getServer().getScheduler().runTask(plugin, () -> registerMultiverse(normalWorldName, normalWorldEnvironment, normalWorldGeneratorName));
|
registerMultiverse(normalWorldName, normalWorldEnvironment, normalWorldGeneratorName);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (netherWorld == null && netherWorldEnabled) {
|
if (netherWorld == null && netherWorldEnabled) {
|
||||||
Bukkit.getServer().getLogger().log(Level.INFO, "SkyBlock | Info: Generating Nether World '" + netherWorldName + "'.");
|
Bukkit.getServer().getLogger().log(Level.INFO, "SkyBlock | Info: Generating Nether World '" + netherWorldName + "'.");
|
||||||
netherWorld = WorldCreator.name(netherWorldName).type(WorldType.FLAT).environment(netherWorldEnvironment).generator(netherWorldWorldGenerator).createWorld();
|
netherWorld = WorldCreator.name(netherWorldName).type(WorldType.FLAT).environment(netherWorldEnvironment).generator(netherWorldWorldGenerator).createWorld();
|
||||||
Bukkit.getServer().getScheduler().runTask(plugin, () -> registerMultiverse(netherWorldName, netherWorldEnvironment, netherWorldGeneratorName));
|
registerMultiverse(netherWorldName, netherWorldEnvironment, netherWorldGeneratorName);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (endWorld == null && endWorldEnabled) {
|
if (endWorld == null && endWorldEnabled) {
|
||||||
Bukkit.getServer().getLogger().log(Level.INFO, "SkyBlock | Info: Generating Void World '" + endWorldName + "'.");
|
Bukkit.getServer().getLogger().log(Level.INFO, "SkyBlock | Info: Generating Void World '" + endWorldName + "'.");
|
||||||
endWorld = WorldCreator.name(endWorldName).type(WorldType.FLAT).environment(endWorldEnvironment).generator(endWorldWorldGenerator).createWorld();
|
endWorld = WorldCreator.name(endWorldName).type(WorldType.FLAT).environment(endWorldEnvironment).generator(endWorldWorldGenerator).createWorld();
|
||||||
|
registerMultiverse(endWorldName, endWorldEnvironment, endWorldGeneratorName);
|
||||||
Bukkit.getServer().getScheduler().runTask(plugin, () -> registerMultiverse(endWorldName, endWorldEnvironment, endWorldGeneratorName));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (normalWorld != null)
|
if (normalWorld != null)
|
||||||
|
@ -841,6 +841,8 @@ Command:
|
|||||||
Message: '&bSkyBlock &8| &cError&8: &eYou don''t have permission to view information on other players'' Islands.'
|
Message: '&bSkyBlock &8| &cError&8: &eYou don''t have permission to view information on other players'' Islands.'
|
||||||
Owner:
|
Owner:
|
||||||
Message: '&bSkyBlock &8| &cError&8: &eYou are not an Island Owner.'
|
Message: '&bSkyBlock &8| &cError&8: &eYou are not an Island Owner.'
|
||||||
|
Previewing:
|
||||||
|
Message: '&bSkyBlock &8| &cError&8: &eYou are currently previewing an island.'
|
||||||
Info:
|
Info:
|
||||||
Message: '&f&oOpens the Island Information menu.'
|
Message: '&f&oOpens the Island Information menu.'
|
||||||
Reset:
|
Reset:
|
||||||
|
@ -6,8 +6,8 @@ description: A unique SkyBlock plugin
|
|||||||
author: Songoda
|
author: Songoda
|
||||||
authors: [ Fabrimat ]
|
authors: [ Fabrimat ]
|
||||||
softdepend: [ HolographicDisplays, Holograms, CMI, PlaceholderAPI, MVdWPlaceholderAPI, Vault, Reserve, PlayerPoints,
|
softdepend: [ HolographicDisplays, Holograms, CMI, PlaceholderAPI, MVdWPlaceholderAPI, Vault, Reserve, PlayerPoints,
|
||||||
LeaderHeads, EpicSpawners, UltimateStacker, WorldEdit, Residence, CoreProtect, CMIEInjector,
|
LeaderHeads, EpicSpawners, UltimateStacker, WorldEdit, Residence, CoreProtect, CMIEInjector ]
|
||||||
Multiverse-Core, ProtocolLib ]
|
loadbefore: [Multiverse-Core, ProtocolLib]
|
||||||
commands:
|
commands:
|
||||||
island:
|
island:
|
||||||
description: Island command
|
description: Island command
|
||||||
|
Loading…
Reference in New Issue
Block a user