Initial commit: EssentialsC v1.1.0

This commit is contained in:
Coldsmile_7
2026-04-14 04:39:29 +08:00
commit 093781ea68
29 changed files with 1489 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package cn.infstar.essentialsC.commands;
import org.bukkit.entity.Player;
import java.util.Map;
public class SuicideCommand extends BaseCommand {
public SuicideCommand() {
super("essentialsc.command.suicide");
}
@Override
protected boolean execute(Player player, String[] args) {
String message = getLang().getString("messages.suicide-message",
Map.of("player", player.getName()));
player.setHealth(0);
// 消息会在玩家死亡后显示,所以这里不发送
return true;
}
}