Updated to BentoBox 1.14 API

Shorter DB table names
ASync DB saving methods
Generic perms
This commit is contained in:
tastybento 2020-06-10 21:25:33 -07:00
parent 262889c49f
commit aefce5e387
4 changed files with 8 additions and 31 deletions

View File

@ -35,7 +35,7 @@ public class SignCacheManager {
}
void saveCache() {
cachedSigns.forEach((w, m) -> handler.saveObject(new SignCache(w, m)));
cachedSigns.forEach((w, m) -> handler.saveObjectAsync(new SignCache(w, m)));
}
Material getSignIcon(World world, UUID warpOwner) {

View File

@ -9,8 +9,10 @@ import org.bukkit.World;
import com.google.gson.annotations.Expose;
import world.bentobox.bentobox.database.objects.DataObject;
import world.bentobox.bentobox.database.objects.Table;
import world.bentobox.warps.SignCacheItem;
@Table(name = "WarpSignCache")
public class SignCache implements DataObject {
@Expose

View File

@ -10,7 +10,9 @@ import org.bukkit.World;
import com.google.gson.annotations.Expose;
import world.bentobox.bentobox.database.objects.DataObject;
import world.bentobox.bentobox.database.objects.Table;
@Table(name = "WarpsData")
public class WarpsData implements DataObject {
@Expose

View File

@ -2,43 +2,16 @@ name: Warps
main: world.bentobox.warps.Warp
version: ${version}${build.number}
icon: OAK_SIGN
api-version: 1.14
authors: tastybento
softdepend: AcidIsland, BSkyBlock, CaveBlock, SkyGrid, AOneBlock
permissions:
bskyblock.island.warp:
'[gamemode].island.warp':
description: Player can use warp or warps commands
default: true
bskyblock.island.addwarp:
description: Player can create a welcome warp sign
default: true
acidisland.island.warp:
description: Player can use warp or warps commands
default: true
acidisland.island.addwarp:
description: Player can create a welcome warp sign
default: true
caveblock.island.warp:
description: Player can use warp or warps commands
default: true
caveblock.island.addwarp:
description: Player can create a welcome warp sign
default: true
skygrid.island.warp:
description: Player can use warp or warps commands
default: true
skygrid.island.addwarp:
description: Player can create a welcome warp sign
default: true
aoneblock.island.warp:
description: Player can use warp or warps commands
default: true
aoneblock.island.addwarp:
'[gamemode].island.addwarp':
description: Player can create a welcome warp sign
default: true