From b16aab62c5ff80abdf19d17041aa625305282999 Mon Sep 17 00:00:00 2001 From: Friederike von Gruben Date: Mon, 6 Feb 2023 14:09:35 +0100 Subject: [PATCH] Added getPlayerName() to BlackJack --- src/main/java/org/bitbiome/classes/BlackJack.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/bitbiome/classes/BlackJack.java b/src/main/java/org/bitbiome/classes/BlackJack.java index e004bde..5a0a341 100644 --- a/src/main/java/org/bitbiome/classes/BlackJack.java +++ b/src/main/java/org/bitbiome/classes/BlackJack.java @@ -46,4 +46,7 @@ public class BlackJack { this.botIn = true; } + public String getPlayerName(Entity entity) { + return entity == Entity.PLAYER ? playerName : "BitBiome"; + } }