17 lines
421 B
Java
17 lines
421 B
Java
package de.jaschastarke.minecraft.limitedcreative.cmdblocker;
|
|
|
|
public class StringBlockEntry implements ICmdBlockEntry {
|
|
private String str;
|
|
public StringBlockEntry(String cmd) {
|
|
str = cmd;
|
|
}
|
|
|
|
@Override
|
|
public boolean test(String cmd) {
|
|
return cmd.toLowerCase().startsWith(this.str.toLowerCase());
|
|
}
|
|
|
|
public String toString() {
|
|
return str;
|
|
}
|
|
}
|