Create T2CdevelopmentTool.java
This commit is contained in:
parent
a7c7877ac6
commit
2e1ef9c46d
@ -0,0 +1,9 @@
|
||||
package net.t2code.t2codelib.SPIGOT.api.dev;
|
||||
|
||||
public class T2CdevelopmentTool {
|
||||
public static String removeLastChar(String s, int amount) {
|
||||
return (s == null || s.length() == 0)
|
||||
? null
|
||||
: (s.substring(0, s.length() - amount));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user