mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-02-05 13:01:23 +01:00
Refactoring
This commit is contained in:
parent
87c6ea8fc8
commit
165f3f204a
@ -28,7 +28,11 @@ public class uName {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String stripName(String name) {
|
public static String stripName(String name) {
|
||||||
return (name.length() > 15 ? name.substring(0, 15) : name);
|
if (name.length() > 15) {
|
||||||
|
return name.substring(0, 15);
|
||||||
|
}
|
||||||
|
|
||||||
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String shortenName(Player player) {
|
public static String shortenName(Player player) {
|
||||||
|
Loading…
Reference in New Issue
Block a user