mirror of
https://github.com/BentoBoxWorld/Warps.git
synced 2024-09-29 23:57:33 +02:00
parent
aefce5e387
commit
3023cb4db1
@ -35,7 +35,7 @@ public class SignCacheManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void saveCache() {
|
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) {
|
Material getSignIcon(World world, UUID warpOwner) {
|
||||||
|
@ -9,10 +9,8 @@ import org.bukkit.World;
|
|||||||
import com.google.gson.annotations.Expose;
|
import com.google.gson.annotations.Expose;
|
||||||
|
|
||||||
import world.bentobox.bentobox.database.objects.DataObject;
|
import world.bentobox.bentobox.database.objects.DataObject;
|
||||||
import world.bentobox.bentobox.database.objects.Table;
|
|
||||||
import world.bentobox.warps.SignCacheItem;
|
import world.bentobox.warps.SignCacheItem;
|
||||||
|
|
||||||
@Table(name = "WarpSignCache")
|
|
||||||
public class SignCache implements DataObject {
|
public class SignCache implements DataObject {
|
||||||
|
|
||||||
@Expose
|
@Expose
|
||||||
|
@ -10,9 +10,7 @@ import org.bukkit.World;
|
|||||||
import com.google.gson.annotations.Expose;
|
import com.google.gson.annotations.Expose;
|
||||||
|
|
||||||
import world.bentobox.bentobox.database.objects.DataObject;
|
import world.bentobox.bentobox.database.objects.DataObject;
|
||||||
import world.bentobox.bentobox.database.objects.Table;
|
|
||||||
|
|
||||||
@Table(name = "WarpsData")
|
|
||||||
public class WarpsData implements DataObject {
|
public class WarpsData implements DataObject {
|
||||||
|
|
||||||
@Expose
|
@Expose
|
||||||
|
@ -2,16 +2,43 @@ name: Warps
|
|||||||
main: world.bentobox.warps.Warp
|
main: world.bentobox.warps.Warp
|
||||||
version: ${version}${build.number}
|
version: ${version}${build.number}
|
||||||
icon: OAK_SIGN
|
icon: OAK_SIGN
|
||||||
api-version: 1.14
|
|
||||||
|
|
||||||
authors: tastybento
|
authors: tastybento
|
||||||
|
|
||||||
softdepend: AcidIsland, BSkyBlock, CaveBlock, SkyGrid, AOneBlock
|
softdepend: AcidIsland, BSkyBlock, CaveBlock, SkyGrid, AOneBlock
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
'[gamemode].island.warp':
|
bskyblock.island.warp:
|
||||||
description: Player can use warp or warps commands
|
description: Player can use warp or warps commands
|
||||||
default: true
|
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
|
description: Player can create a welcome warp sign
|
||||||
default: true
|
default: true
|
||||||
|
Loading…
Reference in New Issue
Block a user