mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Send a less obnoxious message if the flag name length exceeds the maximum allowed length
This commit is contained in:
parent
a263fe2f2d
commit
135c6f2c15
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue