Move afk strings to lang file

This commit is contained in:
William Blake Galbreath
2020-03-26 18:39:15 -05:00
parent 405fa5ff10
commit f4ef6baaac
15 changed files with 100 additions and 81 deletions

View File

@@ -1,4 +1,4 @@
From 656d855ec7cca2b392f3514b75fb0006643e7b25 Mon Sep 17 00:00:00 2001
From ed8b8bda098f559305e3510916cba187f0b5a1c5 Mon Sep 17 00:00:00 2001
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
Date: Fri, 13 Mar 2020 22:29:10 -0500
Subject: [PATCH] Add /ping command
@@ -8,8 +8,8 @@ Subject: [PATCH] Add /ping command
.../minecraft/server/CommandDispatcher.java | 5 ++-
.../server/CommandListenerWrapper.java | 1 +
.../net/pl3x/purpur/command/PingCommand.java | 34 +++++++++++++++++++
src/main/resources/purpur.lang | 3 +-
5 files changed, 43 insertions(+), 2 deletions(-)
src/main/resources/purpur.lang | 1 +
5 files changed, 42 insertions(+), 1 deletion(-)
create mode 100644 src/main/java/net/pl3x/purpur/command/PingCommand.java
diff --git a/src/main/java/net/minecraft/server/ArgumentEntity.java b/src/main/java/net/minecraft/server/ArgumentEntity.java
@@ -116,15 +116,16 @@ index 0000000000..3aea2a76db
+ }
+}
diff --git a/src/main/resources/purpur.lang b/src/main/resources/purpur.lang
index 5394225094..489dcbf350 100644
index 151ea90928..63a5ad0037 100644
--- a/src/main/resources/purpur.lang
+++ b/src/main/resources/purpur.lang
@@ -1,4 +1,5 @@
@@ -1,6 +1,7 @@
{
"commands.purpur.mspt": "§6Server tick times §e(§7avg§e/§7min§e/§7max§e)§6 from last 5s§7,§6 10s§7,§6 1m§e:",
- "commands.purpur.mspt.times": "§6◴ %s§7/%s§7/%s§e, %s§7/%s§7/%s§e, %s§7/%s§7/%s"
+ "commands.purpur.mspt.times": "§6◴ %s§7/%s§7/%s§e, %s§7/%s§7/%s§e, %s§7/%s§7/%s",
+ "commands.purpur.ping": "§a%s's ping is %sms"
"commands.purpur.mspt.times": "§6◴ %s§7/%s§7/%s§e, %s§7/%s§7/%s§e, %s§7/%s§7/%s",
+ "commands.purpur.ping": "§a%s's ping is %sms",
"idle.timeout.broadcast.away": "§e§o%s is now AFK",
"idle.timeout.broadcast.back": "§e§o%s is no longer AFK"
}
--
2.24.0