From dc7b7a160042c14fd811ac52eefee0057626004b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20P=C5=82a=C5=BCewski?= Date: Mon, 17 May 2021 00:31:40 +0200 Subject: [PATCH] Fix missing username console death message (#5654) (#5658) --- Spigot-Server-Patches/0010-Adventure.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Spigot-Server-Patches/0010-Adventure.patch b/Spigot-Server-Patches/0010-Adventure.patch index 958606b45..f68da81ab 100644 --- a/Spigot-Server-Patches/0010-Adventure.patch +++ b/Spigot-Server-Patches/0010-Adventure.patch @@ -448,7 +448,7 @@ index 0000000000000000000000000000000000000000..caa9708f321f04cd02534161231c0599 +} diff --git a/src/main/java/io/papermc/paper/adventure/PaperAdventure.java b/src/main/java/io/papermc/paper/adventure/PaperAdventure.java new file mode 100644 -index 0000000000000000000000000000000000000000..cd2da276c09dcf98c1c50dc66aa30dd3b67b43af +index 0000000000000000000000000000000000000000..c60457e9240c33a4721b82a00cef081fb320c8a7 --- /dev/null +++ b/src/main/java/io/papermc/paper/adventure/PaperAdventure.java @@ -0,0 +1,344 @@ @@ -513,7 +513,7 @@ index 0000000000000000000000000000000000000000..cd2da276c09dcf98c1c50dc66aa30dd3 + // calculate argument position + if (argIdx != null) { + try { -+ final int idx = Integer.parseInt(argIdx); ++ final int idx = Integer.parseInt(argIdx) - 1; + if (idx < args.size()) { + consumer.accept(args.get(idx)); + }