aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-10 20:54:07 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-10 20:54:07 +0200
commit28bc87528709c76d85d90c065d428ef9c31d2bbb (patch)
treed18746aadaa1f51e030ec8faece8766a84297d7a /src/main/java/at/hannibal2/skyhanni/utils
parentbc33d91ec58ecd4dd782485c48385dfad79522c2 (diff)
downloadskyhanni-28bc87528709c76d85d90c065d428ef9c31d2bbb.tar.gz
skyhanni-28bc87528709c76d85d90c065d428ef9c31d2bbb.tar.bz2
skyhanni-28bc87528709c76d85d90c065d428ef9c31d2bbb.zip
Hide own player name or hypixel watchdog player names from visitor detection
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
index 5f5f83514..13701a95d 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
@@ -171,6 +171,8 @@ object LorenzUtils {
fun getPlayerUuid() = Minecraft.getMinecraft().thePlayer.uniqueID.toDashlessUUID()
+ fun getPlayerName() = Minecraft.getMinecraft().thePlayer.name
+
fun <E> MutableList<List<E>>.addAsSingletonList(text: E) {
add(Collections.singletonList(text))
}