anchor shield mechanic not working

This commit is contained in:
kai ohara 2025-01-29 16:51:24 -05:00
parent b79edb8959
commit f0bf035b16
17 changed files with 5 additions and 6 deletions

View File

@ -3,7 +3,7 @@ plugins {
}
group = 'com.newt-tech'
version = '1.4-BETA'
version = '1.5-BETA'
repositories {
mavenCentral()

Binary file not shown.

View File

@ -1,5 +1,5 @@
name: CoswayUtil
version: '1.4-BETA'
version: '1.5-BETA'
main: CoswayUtil.CoswayUtil
description: "utility plugin for Cosway servers, a yescraft network server"
api-version: '1.21'

View File

@ -140,7 +140,7 @@ public final class CoswayUtil extends JavaPlugin {
}
private ArmorStand spawnMarker(Location loc) {
ArmorStand marker = loc.getWorld().spawn(loc.add(0.5, 1, 0.5), ArmorStand.class);
ArmorStand marker = loc.getWorld().spawn(loc.add(0.5, 0, 0.5), ArmorStand.class);
marker.setInvisible(true);
marker.setInvulnerable(true);
marker.setMarker(true);
@ -213,9 +213,8 @@ public final class CoswayUtil extends JavaPlugin {
@EventHandler
public void onBlockPlace(BlockPlaceEvent event) {
Location loc = event.getBlockPlaced().getLocation();
Bukkit.broadcastMessage("block placed");
if (isMultiBlock(loc)) {
Bukkit.broadcastMessage("Multiblock made");
serverMessage("Multiblock made");
manageAnchor(loc); // Start managing the anchor once the multi-block structure is assembled
}
}

View File

@ -1,5 +1,5 @@
name: CoswayUtil
version: '1.4-BETA'
version: '1.5-BETA'
main: CoswayUtil.CoswayUtil
description: "utility plugin for Cosway servers, a yescraft network server"
api-version: '1.21'