From 135c6f2c153f7a3424850d1f06c6300eaa009880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20S=C3=B6derberg?= Date: Thu, 30 Apr 2020 13:36:03 +0200 Subject: [PATCH] Send a less obnoxious message if the flag name length exceeds the maximum allowed length --- .../java/com/plotsquared/core/plot/flag/FlagContainer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/plot/flag/FlagContainer.java b/Core/src/main/java/com/plotsquared/core/plot/flag/FlagContainer.java index e05f82fc7..6ac17e337 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/flag/FlagContainer.java +++ b/Core/src/main/java/com/plotsquared/core/plot/flag/FlagContainer.java @@ -146,8 +146,9 @@ public class FlagContainer { this.updateSubscribers .forEach(subscriber -> subscriber.handle(flag, plotFlagUpdateType)); } catch (IllegalStateException e) { - PlotSquared.log( - "yo look at this dumb fuck trying to add this thicc flag lol, nah mate, ain't having none of that"); + PlotSquared.log(String.format("Flag '%s' (class: '%s') could not be added to the container" + + " because the flag name exceeded the allowed limit of 64 characters." + + " Please tell the developer of that flag to fix this.", flag.getName(), flag.getClass().getName())); e.printStackTrace(); } }