Skip to content
This repository was archived by the owner on Feb 17, 2024. It is now read-only.

Commit 2be3c2a

Browse files
Merge pull request #70 from Protonull/add-patch-feedback
Add patch-mode feedback
2 parents 22c8403 + e994c5c commit 2be3c2a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

paper/src/main/java/vg/civcraft/mc/citadel/playerstate/PatchState.java

+12
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,18 @@ public void handleInteractBlock(PlayerInteractEvent e) {
7878
return;
7979
}
8080
}
81+
82+
CitadelUtility.sendAndLog(
83+
player,
84+
ChatColor.GOLD, "Patching "
85+
+ ChatColor.AQUA + rein.getType().getName()
86+
+ ChatColor.GOLD + " reinforcement owned by "
87+
+ ChatColor.LIGHT_PURPLE + rein.getGroup().getName()
88+
+ ChatColor.GOLD + " from "
89+
+ ModeListener.formatHealth(rein),
90+
e.getClickedBlock().getLocation()
91+
);
92+
8193
rein.setHealth(rein.getType().getHealth());
8294
rein.resetCreationTime();
8395
}

0 commit comments

Comments
 (0)