mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 06:28:49 +00:00
Fix command descriptions being sometimes wrongly truncated
This commit is contained in:
1 file changed
-1
@@ -55,7 +55,6 @@ public abstract class Command extends Node {
|
|||||||
@NotNull
|
@NotNull
|
||||||
public String getDescription() {
|
public String getDescription() {
|
||||||
return plugin.getLocales().getRawLocale(getName() + "_command_description")
|
return plugin.getLocales().getRawLocale(getName() + "_command_description")
|
||||||
.map(description -> plugin.getLocales().truncateText(description, 40))
|
|
||||||
.orElse(getUsage());
|
.orElse(getUsage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user