2013-02-09 19:09:57 +00:00
|
|
|
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) {
|
2013-09-15 13:04:59 +00:00
|
|
|
return cmd.toLowerCase().startsWith(this.str.toLowerCase());
|
2013-02-09 19:09:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
|
|
|
return str;
|
|
|
|
}
|
|
|
|
}
|