Skip to content

Commit

Permalink
Revert "Updated to BentoBox 1.14 API"
Browse files Browse the repository at this point in the history
This reverts commit aefce5e.
  • Loading branch information
tastybento committed Jun 11, 2020
1 parent aefce5e commit 3023cb4
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/main/java/world/bentobox/warps/SignCacheManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private void loadCache() {
}

void saveCache() {
cachedSigns.forEach((w, m) -> handler.saveObjectAsync(new SignCache(w, m)));
cachedSigns.forEach((w, m) -> handler.saveObject(new SignCache(w, m)));
}

Material getSignIcon(World world, UUID warpOwner) {
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/world/bentobox/warps/objects/SignCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
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
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/world/bentobox/warps/objects/WarpsData.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
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
Expand Down
33 changes: 30 additions & 3 deletions src/main/resources/addon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,43 @@ 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:
'[gamemode].island.warp':
bskyblock.island.warp:
description: Player can use warp or warps commands
default: true
'[gamemode].island.addwarp':
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:
description: Player can create a welcome warp sign
default: true

0 comments on commit 3023cb4

Please sign in to comment.