MCPcopy Create free account
hub / github.com/Teneted/Tenet / limit

Method limit

src/main/java/org/spigotmc/ValidateUtils.java:6–13  ·  view source on GitHub ↗
(String str, int limit)

Source from the content-addressed store, hash-verified

4{
5
6 public static String limit(String str, int limit)
7 {
8 if ( str.length() > limit )
9 {
10 return str.substring( 0, limit );
11 }
12 return str;
13 }
14}

Callers 8

CraftMetaItemMethod · 0.95
CraftMetaBookMethod · 0.80
pushLimitMethod · 0.80
popLimitMethod · 0.80
executeMethod · 0.80
parseMethod · 0.80
parseMethod · 0.80
getMessagesMethod · 0.80

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected