Deduplicate some translation keys

This commit is contained in:
AnimeGitB
2022-06-22 23:20:16 +09:30
parent dcd3c696ea
commit 371acb9ba5
8 changed files with 3 additions and 21 deletions

View File

@@ -156,7 +156,7 @@ public final class CommandMap {
CommandHandler.sendTranslatedMessage(player, targetPlayer.isOnline()? "commands.execution.set_target_online" : "commands.execution.set_target_offline", targetUidStr);
}
} catch (NumberFormatException e) {
CommandHandler.sendTranslatedMessage(player, "commands.execution.uid_error");
CommandHandler.sendTranslatedMessage(player, "commands.generic.invalid.uid");
}
}
return;
@@ -183,7 +183,7 @@ public final class CommandMap {
}
break;
} catch (NumberFormatException e) {
CommandHandler.sendTranslatedMessage(player, "commands.execution.uid_error");
CommandHandler.sendTranslatedMessage(player, "commands.generic.invalid.uid");
return;
}
}

View File

@@ -31,7 +31,7 @@ public final class CoopCommand implements CommandHandler {
}
break;
} catch (NumberFormatException ignored) {
CommandHandler.sendMessage(sender, translate(sender, "commands.execution.uid_error"));
CommandHandler.sendMessage(sender, translate(sender, "commands.generic.invalid.uid"));
return;
}
default: