mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-25 02:27:42 +01:00
Remove the "/" adding code from EntityTypeFlag.
This commit is contained in:
parent
dcdd0497d8
commit
66eb8fa553
@ -40,10 +40,7 @@ protected EntityTypeFlag(String name) {
|
||||
@Override
|
||||
public EntityType parseInput(FlagContext context) throws InvalidFlagFormat {
|
||||
String input = context.getUserInput();
|
||||
input = input.trim();
|
||||
if (!input.startsWith("/")) {
|
||||
input = "/" + input;
|
||||
}
|
||||
input = input.trim().toLowerCase();
|
||||
EntityType entityType = unmarshal(input);
|
||||
if (entityType == null) {
|
||||
throw new InvalidFlagFormat("Unknown entity type: " + input);
|
||||
|
Loading…
Reference in New Issue
Block a user