Create T2CdevelopmentTool.java
This commit is contained in:
@@ -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));
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user