diff --git a/Plugins/Mineplex.Core.Common/src/mineplex/core/common/util/UtilText.java b/Plugins/Mineplex.Core.Common/src/mineplex/core/common/util/UtilText.java index 360a418c2..92b4eb728 100644 --- a/Plugins/Mineplex.Core.Common/src/mineplex/core/common/util/UtilText.java +++ b/Plugins/Mineplex.Core.Common/src/mineplex/core/common/util/UtilText.java @@ -614,6 +614,11 @@ public class UtilText public static String repeat(String txt, int times) { + if (times <= 0) + { + return new String(); + } + return new String(new byte[times]).replace("\0", txt); }