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
|
default: true
|
||||||
bskyblock.island.lock:
|
bskyblock.island.lock:
|
||||||
description: Allows island locking
|
description: Allows island locking
|
||||||
default: false
|
default: true
|
||||||
bskyblock.island.expel:
|
bskyblock.island.expel:
|
||||||
description: Allows expelling of visitors
|
description: Allows expelling of visitors
|
||||||
default: true
|
default: true
|
||||||
bskyblock.island.ban:
|
bskyblock.island.ban:
|
||||||
description: Allows banning of visitors
|
description: Allows banning of visitors
|
||||||
default: false
|
default: true
|
||||||
bskyblock.island.settings:
|
bskyblock.island.settings:
|
||||||
description: Player can see server settings
|
description: Player can see server settings
|
||||||
default: true
|
default: true
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -39,8 +39,6 @@ public class AdminSchemCommand extends CompositeCommand {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
File schemFolder = new File(getIWM().getDataFolder(getWorld()), "schems");
|
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));
|
Clipboard cb = clipboards.getOrDefault(user.getUniqueId(), new Clipboard(getPlugin(), schemFolder));
|
||||||
|
|
||||||
if (args.get(0).equalsIgnoreCase("paste")) {
|
if (args.get(0).equalsIgnoreCase("paste")) {
|
||||||
|
@ -359,9 +359,11 @@ public class Clipboard {
|
|||||||
if (bs instanceof InventoryHolder) {
|
if (bs instanceof InventoryHolder) {
|
||||||
bs.update(true, false);
|
bs.update(true, false);
|
||||||
Inventory ih = ((InventoryHolder)bs).getInventory();
|
Inventory ih = ((InventoryHolder)bs).getInventory();
|
||||||
|
if (config.isConfigurationSection("inventory")) {
|
||||||
ConfigurationSection inv = config.getConfigurationSection("inventory");
|
ConfigurationSection inv = config.getConfigurationSection("inventory");
|
||||||
inv.getKeys(false).forEach(i -> ih.setItem(Integer.valueOf(i), (ItemStack)inv.get(i)));
|
inv.getKeys(false).forEach(i -> ih.setItem(Integer.valueOf(i), (ItemStack)inv.get(i)));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Entities
|
// Entities
|
||||||
if (config.isConfigurationSection("entity")) {
|
if (config.isConfigurationSection("entity")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user