Skip to content

Commit

Permalink
补充汉化
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw0014 committed Jun 19, 2022
1 parent a7805f9 commit 61cfd39
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ public class NetheoCommands extends BaseCommand {

@Default
public void onDefault(CommandSender sender) {
sender.sendMessage(Theme.ERROR + "Please provide a valid subcommand.");
sender.sendMessage(Theme.ERROR + "请输入子指令.");
}

@Subcommand("MobCaps")
@Description("Displays information about the various MobCaps")
@Description("显示生物上限设置信息")
@CommandPermission("netheopoiesis.admin.mobcaps")
public void viewMobCaps(CommandSender sender) {
final MobCapType[] mobCapTypes = MobCapType.values();
Expand All @@ -47,12 +47,12 @@ public void viewMobCaps(CommandSender sender) {
}

@Subcommand("PurgeMobCap")
@Description("Kills all mobs from a specific Mob Cap")
@Description("清除指定类型的所有生物")
@CommandPermission("netheopoiesis.admin.mobcaps")
@CommandCompletion("@MOB_CAPS")
public void purgeMobCap(CommandSender sender, String mobCapType) {
final MobCap mobCap = MobManager.getInstance().getMobCap(MobCapType.valueOf(mobCapType));
final String message = "Mob Cap Purged";
final String message = "已清除指定类型的所有生物";

mobCap.killAllMobs();
if (sender instanceof Player player) {
Expand All @@ -63,10 +63,10 @@ public void purgeMobCap(CommandSender sender, String mobCapType) {
}

@Subcommand("PurgeAllMobCap")
@Description("Kills all mobs from all Mob Caps")
@Description("清除所有生物")
@CommandPermission("netheopoiesis.admin.mobcaps")
public void purgeMobCap(CommandSender sender) {
final String message = "All Mob Caps Purged";
final String message = "已清除所有生物";

for (MobCapType type : MobCapType.values()) {
MobManager.getInstance().getMobCap(type).killAllMobs();
Expand Down

0 comments on commit 61cfd39

Please sign in to comment.