Dieser Commit ist enthalten in:
Ursprung
3766265fc7
Commit
6eef99db65
@ -106,7 +106,7 @@ public class SchematicCommand extends SWCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Register({"info", "public"})
|
@Register({"info", "public"})
|
||||||
public void schemInfoPublic(Player player, @Validator("isDirValidator") @Mapper("publicMapper") SchematicNode node) {
|
public void schemInfoPublic(Player player, @Mapper("publicMapper") SchematicNode node) {
|
||||||
schemInfo(player, node);
|
schemInfo(player, node);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -599,12 +599,7 @@ public class SchematicCommand extends SWCommand {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SchematicNode map(CommandSender commandSender, String[] previousArguments, String s) {
|
public SchematicNode map(CommandSender commandSender, String[] previousArguments, String s) {
|
||||||
SchematicNode result = SchematicNode.getNodeFromPath(getUser((Player) commandSender), s);
|
return SchematicNode.getNodeFromPath(getUser((Player) commandSender), s);
|
||||||
if (result == null || !result.isDir()) {
|
|
||||||
return null;
|
|
||||||
} else {
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -621,12 +616,7 @@ public class SchematicCommand extends SWCommand {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SchematicNode map(CommandSender commandSender, String[] previousArguments, String s) {
|
public SchematicNode map(CommandSender commandSender, String[] previousArguments, String s) {
|
||||||
SchematicNode result = publicCommandTypeMapper.map(commandSender, previousArguments, s);
|
return publicCommandTypeMapper.map(commandSender, previousArguments, s);
|
||||||
if (result == null || !result.isDir()) {
|
|
||||||
return null;
|
|
||||||
} else {
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren