Skip to content

Commit 105b537

Browse files
committed
fix: Readme URLs
fix: Get build working fix: Allow /linfo without player argument
1 parent e32443e commit 105b537

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<div align="center">
22

33
# DeeperWorld
4-
[![Java CI](https://github.com/MineInAbyss/DeeperWorld/actions/workflows/main.yml/badge.svg)](https://github.com/MineInAbyss/DeeperWorld/actions/workflows/main.yml)
54
[![Package](https://img.shields.io/maven-metadata/v?metadataUrl=https://repo.mineinabyss.com/releases/com/mineinabyss/deeperworld/maven-metadata.xml)](https://repo.mineinabyss.com/#/releases/com/mineinabyss/deeperworld)
6-
[![Wiki](https://img.shields.io/badge/-Project%20Wiki-blueviolet?logo=Wikipedia&labelColor=gray)](https://wiki.mineinabyss.com/deeperworld)
7-
[![Contribute](https://shields.io/badge/Contribute-e57be5?logo=github%20sponsors&style=flat&logoColor=white)](https://wiki.mineinabyss.com/contribute)
5+
[![Docs](https://img.shields.io/badge/-Project%20Docs-blueviolet?logo=Wikipedia&labelColor=gray)](https://docs.mineinabyss.com/deeperworld)
6+
[![Contribute](https://shields.io/badge/Contribute-e57be5?logo=github%20sponsors&style=flat&logoColor=white)](https://docs.mineinabyss.com)
87
</div>
98

109
DeeperWorld is a plugin used on the Mine in Abyss server to create the illusion of a world taller than Minecraft's 256

src/main/kotlin/com/mineinabyss/deeperworld/DeeperCommands.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import com.sk89q.worldedit.world.World
3131
import io.papermc.paper.command.brigadier.argument.ArgumentTypes
3232

3333
object DeeperCommands {
34-
3534
fun registerCommands() {
3635
deeperWorld.plugin.commands {
3736
("deeperworld" / "dw") {
@@ -52,7 +51,7 @@ object DeeperCommands {
5251
}
5352
}
5453
("layerinfo" / "linfo" / "info" / "layers" / "layers") {
55-
executes(ArgumentTypes.player().resolve().map { it.single() }) { player ->
54+
playerExecutes {
5655
val section = WorldManager.getSectionFor(player.location)
5756
if (section == null) sender.info("${player.name} is not in a managed section")
5857
else sender.info("${player.name} is in section ${section.key}")
@@ -183,4 +182,4 @@ object DeeperCommands {
183182
}
184183
}
185184
}
186-
}
185+
}

src/main/kotlin/com/mineinabyss/deeperworld/synchronization/ContainerSyncListener.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,15 @@ object ContainerSyncListener : Listener {
4040
val linkedSection = block.location.correspondingSection ?: return
4141
val linkedBlock = block.location.getCorrespondingLocation(section, linkedSection)?.block ?: return
4242

43-
if (Plugins.isEnabled("BlockLocker")) {
43+
blockLocker?.apply {
4444
updateProtection(linkedBlock)
4545
updateProtection(block)
4646

4747
//allow chest protection signs to be placed
4848
if (player.inventory.itemInMainHand.type.name.contains("SIGN")
4949
|| !BlockLockerAPIv2.isAllowed(player, block, true)
5050
|| !BlockLockerAPIv2.isAllowed(player, linkedBlock, true)
51-
)
52-
return
51+
) return
5352
}
5453

5554
if (container is Lidded) {
@@ -91,7 +90,8 @@ object ContainerSyncListener : Listener {
9190

9291
val section = block.location.section ?: return
9392
val linkedSection = block.location.correspondingSection ?: return
94-
val linkedBlock = block.location.getCorrespondingLocation(section, linkedSection)?.block?.state as? DecoratedPot ?: return
93+
val linkedBlock =
94+
block.location.getCorrespondingLocation(section, linkedSection)?.block?.state as? DecoratedPot ?: return
9595

9696
deeperWorld.plugin.launch {
9797
delay(1.ticks)

0 commit comments

Comments
 (0)