mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 19:55:17 +01:00
Added new island and nether island schems
Fixed bugs with schem pasting, especially empty chests.
This commit is contained in:
parent
265f05529b
commit
aa1ef9bcbd
@ -41,13 +41,13 @@ permissions:
|
||||
default: true
|
||||
bskyblock.island.lock:
|
||||
description: Allows island locking
|
||||
default: false
|
||||
default: true
|
||||
bskyblock.island.expel:
|
||||
description: Allows expelling of visitors
|
||||
default: true
|
||||
bskyblock.island.ban:
|
||||
description: Allows banning of visitors
|
||||
default: false
|
||||
default: true
|
||||
bskyblock.island.settings:
|
||||
description: Player can see server settings
|
||||
default: true
|
||||
|
Binary file not shown.
Binary file not shown.
@ -39,8 +39,6 @@ public class AdminSchemCommand extends CompositeCommand {
|
||||
return false;
|
||||
}
|
||||
File schemFolder = new File(getIWM().getDataFolder(getWorld()), "schems");
|
||||
getPlugin().log("DEBUG: schemFolder = " + schemFolder.getAbsolutePath());
|
||||
getPlugin().log(getIWM().getAddon(getWorld()).map(a -> "Addon = " + a.toString() + " data folder = " + a.getDataFolder().getAbsolutePath()).orElse("Not addon"));
|
||||
Clipboard cb = clipboards.getOrDefault(user.getUniqueId(), new Clipboard(getPlugin(), schemFolder));
|
||||
|
||||
if (args.get(0).equalsIgnoreCase("paste")) {
|
||||
|
@ -359,8 +359,10 @@ public class Clipboard {
|
||||
if (bs instanceof InventoryHolder) {
|
||||
bs.update(true, false);
|
||||
Inventory ih = ((InventoryHolder)bs).getInventory();
|
||||
ConfigurationSection inv = config.getConfigurationSection("inventory");
|
||||
inv.getKeys(false).forEach(i -> ih.setItem(Integer.valueOf(i), (ItemStack)inv.get(i)));
|
||||
if (config.isConfigurationSection("inventory")) {
|
||||
ConfigurationSection inv = config.getConfigurationSection("inventory");
|
||||
inv.getKeys(false).forEach(i -> ih.setItem(Integer.valueOf(i), (ItemStack)inv.get(i)));
|
||||
}
|
||||
}
|
||||
|
||||
// Entities
|
||||
|
Loading…
Reference in New Issue
Block a user